diff options
Diffstat (limited to 'scripts/generate-gitignores.go')
-rw-r--r-- | scripts/generate-gitignores.go | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/scripts/generate-gitignores.go b/scripts/generate-gitignores.go index 471152c907..a169fc0242 100644 --- a/scripts/generate-gitignores.go +++ b/scripts/generate-gitignores.go @@ -1,4 +1,4 @@ -// +build !build +// +build ignore package main @@ -17,17 +17,14 @@ import ( "strings" ) -var ( - prefix = "gitea-gitignore" - url = "https://api.github.com/repos/github/gitignore/tarball" - destination = "" -) +func main() { + var ( + prefix = "gitea-gitignore" + url = "https://api.github.com/repos/github/gitignore/tarball" + destination = "" + ) -func init() { flag.StringVar(&destination, "dest", "options/gitignore/", "destination for the gitignores") -} - -func main() { flag.Parse() file, err := ioutil.TempFile(os.TempDir(), prefix) |