Protect the release.sh script against accidental use. Infer VERSION automatically.

This commit is contained in:
Jérôme Petazzoni
2013-08-09 18:08:06 -07:00
parent 749a7d0e4f
commit ff30eb96b6
2 changed files with 25 additions and 7 deletions

View File

@@ -21,7 +21,7 @@ run apt-get install -y -q reprepro
# Install s3cmd 1.0.1 (earlier versions don't support env variables in the config)
run apt-get install -y -q python-pip
run pip install s3cmd
run /bin/echo -e '[default]\naccess_key=$AWS_ID\nsecret_key=$AWS_KEY\n' > /.s3cfg
run /bin/echo -e '[default]\naccess_key=$AWS_ACCESS_KEY\nsecret_key=$AWS_SECRET_KEY\n' > /.s3cfg
# Download dependencies
run PKG=github.com/kr/pty REV=27435c699; git clone http://$PKG /go/src/$PKG && cd /go/src/$PKG && git checkout -f $REV
run PKG=github.com/gorilla/context/ REV=708054d61e5; git clone http://$PKG /go/src/$PKG && cd /go/src/$PKG && git checkout -f $REV