Skip to content

Rename gogs.go to main.go with all references #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 4, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ check: test
dist: release

govet:
$(GOVET) gogs.go
$(GOVET) main.go
$(GOVET) models modules routers

build: $(GENERATED)
Expand Down
3 changes: 1 addition & 2 deletions gogs.go → main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ import (
"os"
"runtime"

"github.com/urfave/cli"

"github.com/go-gitea/gitea/cmd"
"github.com/go-gitea/gitea/modules/setting"
"github.com/urfave/cli"
)

const APP_VER = "0.9.99.0915"
Expand Down
3 changes: 2 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/usr/bin/env bash
outPath=./output

rm -rf $outPath
mkdir $outPath

go build ../gogs.go
go build ../main.go -o gitea
PLATFORM=`uname | cut -d _ -f 1`
if [ $PLATFORM = "MINGW32" ] || [ $PLATFORM = "MINGW64" ] || [ $PLATFORM = "CYGWIN" ]; then
GOGS_EXE=gogs.exe
Expand Down
5 changes: 3 additions & 2 deletions scripts/build_freebsd.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/usr/bin/env bash
outPlattform=freebsd
outArch=amd64
outPath=./output_$outPlattform_$outArch

rm -rf $outPath
mkdir $outPath

CGO_ENABLED=0 GOOS=$outPlattform GOARCH=$outArch go build ../gogs.go
CGO_ENABLED=0 GOOS=$outPlattform GOARCH=$outArch go build ../main.go -o gitea
chmod +x gogs
mv gogs $outPath/

Expand All @@ -24,4 +25,4 @@ cp ../README_ZH.md $outPath/
cp start.bat $outPath/
cp start.sh $outPath/
cp ../wercker.yml $outPath/
cp mysql.sql $outPath/
cp mysql.sql $outPath/
5 changes: 3 additions & 2 deletions scripts/build_linux64.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/usr/bin/env bash
outPlattform=linux
outArch=amd64
outPath=./output_$outPlattform_$outArch

rm -rf $outPath
mkdir $outPath

CGO_ENABLED=0 GOOS=$outPlattform GOARCH=$outArch go build ../gogs.go
CGO_ENABLED=0 GOOS=$outPlattform GOARCH=$outArch go build ../main.go -o gitea
chmod +x gogs
mv gogs $outPath/

Expand All @@ -24,4 +25,4 @@ cp ../README_ZH.md $outPath/
cp start.bat $outPath/
cp start.sh $outPath/
cp ../wercker.yml $outPath/
cp mysql.sql $outPath/
cp mysql.sql $outPath/