diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/backport-locales.go | 3 | ||||
-rw-r--r-- | build/code-batch-process.go | 1 | ||||
-rw-r--r-- | build/test-echo.go | 20 | ||||
-rw-r--r-- | build/watch.sh | 8 |
4 files changed, 31 insertions, 1 deletions
diff --git a/build/backport-locales.go b/build/backport-locales.go index efaae52bd4..9421b6925e 100644 --- a/build/backport-locales.go +++ b/build/backport-locales.go @@ -1,3 +1,6 @@ +// Copyright 2023 The Gitea Authors. All rights reserved. +// SPDX-License-Identifier: MIT + //go:build ignore package main diff --git a/build/code-batch-process.go b/build/code-batch-process.go index 9cc47442b2..8556c27ad7 100644 --- a/build/code-batch-process.go +++ b/build/code-batch-process.go @@ -65,7 +65,6 @@ func newFileCollector(fileFilter string, batchSize int) (*fileCollector, error) "modules", "routers", "services", - "tools", } co.includePatterns = append(co.includePatterns, regexp.MustCompile(`.*\.go$`)) diff --git a/build/test-echo.go b/build/test-echo.go new file mode 100644 index 0000000000..093364fcf8 --- /dev/null +++ b/build/test-echo.go @@ -0,0 +1,20 @@ +// Copyright 2023 The Gitea Authors. All rights reserved. +// SPDX-License-Identifier: MIT + +//go:build ignore + +package main + +import ( + "fmt" + "io" + "os" +) + +func main() { + _, err := io.Copy(os.Stdout, os.Stdin) + if err != nil { + fmt.Fprintf(os.Stderr, "Error: %v", err) + os.Exit(1) + } +} diff --git a/build/watch.sh b/build/watch.sh new file mode 100644 index 0000000000..61e3dc40a2 --- /dev/null +++ b/build/watch.sh @@ -0,0 +1,8 @@ +#!/bin/bash +set -euo pipefail + +make watch-frontend & +make watch-backend & + +trap 'kill $(jobs -p)' EXIT +wait |