diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-03-26 04:22:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-25 16:22:51 -0400 |
commit | 5b5f7b756bfca7627b5d1326bf7fe8ef13667b7a (patch) | |
tree | a26365636e55f2aca5ea77cc34da1459d1acf70d /tools/external_renderer.go | |
parent | 73b4010fcd93e921b626a6f51de7a148de276283 (diff) | |
download | gitea-5b5f7b756bfca7627b5d1326bf7fe8ef13667b7a.tar.gz gitea-5b5f7b756bfca7627b5d1326bf7fe8ef13667b7a.zip |
Clean some legacy files and move some build files (#23699)
* Clean the "tools" directory. The "tools" directory contains only two
files, move them.
* The "external_renderer.go" works like "cat" command to echo Stdin to
Stdout , to help testing.
* The `// gobuild: external_renderer` is incorrect, there should be no
space: `//gobuild: external_renderer`
* The `fmt.Print(os.Args[1])` is not a well-defined behavior, and it's
never used.
* The "watch.sh" is for "make watch", it's somewhat related to "build"
* After this PR, there is no "tools" directory, the project root
directory looks slightly simpler than before.
* Remove the legacy "contrib/autoboot.sh", there is no
"gogs_supervisord.sh"
* Remove the legacy "contrib/mysql.sql", it's never mentioned anywhere.
* Remove the legacy "contrib/pr/checkout.go", it has been broken for
long time, and it introduces unnecessary dependencies of the main code
base.
Diffstat (limited to 'tools/external_renderer.go')
-rw-r--r-- | tools/external_renderer.go | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tools/external_renderer.go b/tools/external_renderer.go deleted file mode 100644 index c1fcc78f50..0000000000 --- a/tools/external_renderer.go +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2017 The Gitea Authors. All rights reserved. -// SPDX-License-Identifier: MIT - -// gobuild: external_renderer - -package main - -import ( - "fmt" - "io" - "os" -) - -func main() { - if len(os.Args) > 1 { - fmt.Print(os.Args[1]) - } else { - _, err := io.Copy(os.Stdout, os.Stdin) - if err != nil { - fmt.Println(err) - } - } -} |