Move cmd files into subdir

This commit is contained in:
Jakob Borg
2014-03-02 23:13:04 +01:00
parent c217b7cd22
commit 3c171d281c
29 changed files with 3 additions and 4191 deletions

View File

@@ -12,9 +12,9 @@ if [[ $fast != yes ]] ; then
fi
if [[ -z $1 ]] ; then
go build -ldflags "-X main.Version $version"
go build -ldflags "-X main.Version $version" ./cmd/syncthing
elif [[ $1 == "tar" ]] ; then
go build -ldflags "-X main.Version $version" \
go build -ldflags "-X main.Version $version" ./cmd/syncthing \
&& mkdir syncthing-dist \
&& cp syncthing README.md LICENSE syncthing-dist \
&& tar zcvf syncthing-dist.tar.gz syncthing-dist \
@@ -29,7 +29,7 @@ elif [[ $1 == "all" ]] ; then
export name="syncthing-$os"
export GOOS=${os%-*}
export GOARCH=${os#*-}
go build -ldflags "-X main.Version $version"
go build -ldflags "-X main.Version $version" ./cmd/syncthing
mkdir -p "$name"
cp README.md LICENSE "$name"
case $GOOS in