You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // +build go1.2
  2. // Copyright 2014 The Gogs Authors. All rights reserved.
  3. // Use of this source code is governed by a MIT-style
  4. // license that can be found in the LICENSE file.
  5. // Gogs(Go Git Service) is a Self Hosted Git Service in the Go Programming Language.
  6. package main
  7. import (
  8. "os"
  9. "runtime"
  10. "github.com/codegangsta/cli"
  11. "github.com/gogits/gogs/cmd"
  12. "github.com/gogits/gogs/modules/base"
  13. )
  14. // Test that go1.2 tag above is included in builds. main.go refers to this definition.
  15. const go12tag = true
  16. const APP_VER = "0.3.2.0501 Alpha"
  17. func init() {
  18. base.AppVer = APP_VER
  19. runtime.GOMAXPROCS(runtime.NumCPU())
  20. }
  21. func main() {
  22. app := cli.NewApp()
  23. app.Name = "Gogs"
  24. app.Usage = "Go Git Service"
  25. app.Version = APP_VER
  26. app.Commands = []cli.Command{
  27. cmd.CmdWeb,
  28. // cmd.CmdFix,
  29. cmd.CmdDump,
  30. cmd.CmdServ,
  31. cmd.CmdUpdate,
  32. }
  33. app.Flags = append(app.Flags, []cli.Flag{}...)
  34. app.Run(os.Args)
  35. }