Skip to content

Commit ba4d255

Browse files
authored
Merge pull request #33 from metalmatze/feature/main.go
Rename gogs.go to main.go with all references
2 parents a46efe2 + cda6baf commit ba4d255

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ check: test
2424
dist: release
2525

2626
govet:
27-
$(GOVET) gogs.go
27+
$(GOVET) main.go
2828
$(GOVET) models modules routers
2929

3030
build: $(GENERATED)

gogs.go renamed to main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ import (
1111
"os"
1212
"runtime"
1313

14-
"github.com/urfave/cli"
15-
1614
"github.com/go-gitea/gitea/cmd"
1715
"github.com/go-gitea/gitea/modules/setting"
16+
"github.com/urfave/cli"
1817
)
1918

2019
const APP_VER = "0.9.99.0915"

scripts/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
#!/usr/bin/env bash
12
outPath=./output
23

34
rm -rf $outPath
45
mkdir $outPath
56

6-
go build ../gogs.go
7+
go build ../main.go -o gitea
78
PLATFORM=`uname | cut -d _ -f 1`
89
if [ $PLATFORM = "MINGW32" ] || [ $PLATFORM = "MINGW64" ] || [ $PLATFORM = "CYGWIN" ]; then
910
GOGS_EXE=gogs.exe

scripts/build_freebsd.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
#!/usr/bin/env bash
12
outPlattform=freebsd
23
outArch=amd64
34
outPath=./output_$outPlattform_$outArch
45

56
rm -rf $outPath
67
mkdir $outPath
78

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

@@ -24,4 +25,4 @@ cp ../README_ZH.md $outPath/
2425
cp start.bat $outPath/
2526
cp start.sh $outPath/
2627
cp ../wercker.yml $outPath/
27-
cp mysql.sql $outPath/
28+
cp mysql.sql $outPath/

scripts/build_linux64.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
#!/usr/bin/env bash
12
outPlattform=linux
23
outArch=amd64
34
outPath=./output_$outPlattform_$outArch
45

56
rm -rf $outPath
67
mkdir $outPath
78

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

@@ -24,4 +25,4 @@ cp ../README_ZH.md $outPath/
2425
cp start.bat $outPath/
2526
cp start.sh $outPath/
2627
cp ../wercker.yml $outPath/
27-
cp mysql.sql $outPath/
28+
cp mysql.sql $outPath/

0 commit comments

Comments
 (0)