Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (10 sloc) 494 Bytes
#!/bin/sh
BUCKET=s3://diffa-packages
sed s/DIFFA_BUILD_NUMBER/$1/ etc/packages.js.in > packages.js
s3cmd rb --recursive $BUCKET
s3cmd mb $BUCKET
s3cmd put --acl-public --guess-mime-type dist/target/*.zip $BUCKET
s3cmd put --acl-public --guess-mime-type agent/target/*.war $BUCKET
s3cmd put --acl-public --guess-mime-type packages.js $BUCKET
# Upload the zip package to the archives directory for posterity
s3cmd cp --acl-public --guess-mime-type $BUCKET/diffa-b$1.zip s3://diffa-archives
Something went wrong with that request. Please try again.