Browse Source

Rename all occurrences of gogs.go

Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
master
Matthias Loibl 8 years ago
parent
commit
f01d927efb
4 changed files with 9 additions and 6 deletions
  1. +1
    -1
      Makefile
  2. +2
    -1
      scripts/build.sh
  3. +3
    -2
      scripts/build_freebsd.sh
  4. +3
    -2
      scripts/build_linux64.sh

+ 1
- 1
Makefile View File

@@ -24,7 +24,7 @@ check: test
dist: release dist: release


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


build: $(GENERATED) build: $(GENERATED)


+ 2
- 1
scripts/build.sh View File

@@ -1,9 +1,10 @@
#!/usr/bin/env bash
outPath=./output outPath=./output


rm -rf $outPath rm -rf $outPath
mkdir $outPath mkdir $outPath


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


+ 3
- 2
scripts/build_freebsd.sh View File

@@ -1,3 +1,4 @@
#!/usr/bin/env bash
outPlattform=freebsd outPlattform=freebsd
outArch=amd64 outArch=amd64
outPath=./output_$outPlattform_$outArch outPath=./output_$outPlattform_$outArch
@@ -5,7 +6,7 @@ outPath=./output_$outPlattform_$outArch
rm -rf $outPath rm -rf $outPath
mkdir $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 chmod +x gogs
mv gogs $outPath/ mv gogs $outPath/


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

+ 3
- 2
scripts/build_linux64.sh View File

@@ -1,3 +1,4 @@
#!/usr/bin/env bash
outPlattform=linux outPlattform=linux
outArch=amd64 outArch=amd64
outPath=./output_$outPlattform_$outArch outPath=./output_$outPlattform_$outArch
@@ -5,7 +6,7 @@ outPath=./output_$outPlattform_$outArch
rm -rf $outPath rm -rf $outPath
mkdir $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 chmod +x gogs
mv gogs $outPath/ mv gogs $outPath/


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

Loading…
Cancel
Save