Skip to content

Commit

Permalink
Move all scripts into script directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyfdecyf committed Mar 4, 2013
1 parent 569fee3 commit 1d34853
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ install:
- popd
script:
- pushd $GOPATH/src/github.com/shadowsocks/shadowsocks-go
- PATH=$PATH:$GOPATH/bin/ bash -x ./testscript/test.sh
- PATH=$PATH:$GOPATH/bin/ bash -x ./script/test.sh
- popd
4 changes: 3 additions & 1 deletion build.sh → script/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

cd "$( dirname "${BASH_SOURCE[0]}" )/.."

version=`grep 'const version = ' ./shadowsocks/util.go | sed -e 's/.*= //' | sed -e 's/"//g'`
echo "creating shadowsocks binary version $version"

Expand All @@ -23,7 +25,7 @@ build() {
zip $name.zip $prog.exe
rm -f $prog.exe
mv $name.zip $bindir
else
else
mv $prog $name
gzip -f $name
mv $name.gz $bindir
Expand Down
2 changes: 2 additions & 0 deletions createdeb.sh → script/createdeb.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

cd "$( dirname "${BASH_SOURCE[0]}" )/.."

if [[ $# != 1 ]]; then
echo "$0 <arch, i386 or amd64>"
exit 1
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 1d34853

Please sign in to comment.