#!/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
#!/bin/sh

BUCKET=s3://diffa-builds

s3cmd put --acl-public --guess-mime-type dist/target/*.zip $BUCKET
s3cmd put --acl-public --guess-mime-type agent/target/*.war $BUCKET

Arrange for new S3 layout
Arrange for new S3 layout
