Add optimization and s3 release script

This commit is contained in:
Joe Nelson
2014-10-28 19:44:50 -07:00
parent 12c1f0fa23
commit b09ca76333
2 changed files with 12 additions and 2 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
name: dbapi
version: 0.2.4.1
version: 0.2.4.2
synopsis: The database is your api
license: MIT
license-file: LICENSE
@@ -11,7 +11,7 @@ cabal-version: >=1.10
executable dbapi
main-is: Main.hs
ghc-options: -Wall -W -Werror
ghc-options: -Wall -W -Werror -O2
default-language: Haskell2010
build-depends: base >=4.6 && <5
, HDBC, HDBC-postgresql
+10
View File
@@ -0,0 +1,10 @@
export DBAPI_VER=`grep ^version /app/dbapi.cabal | sed -En 's/.*\s+([0-9\.]+)/\1/p'`
curl -L http://softlayer-ams.dl.sourceforge.net/project/s3tools/s3cmd/1.5.0-alpha1/s3cmd-1.5.0-alpha1.tar.gz | tar zx
cp /app/dist/build/dbapi/dbapi dbapi-${DBAPI_VER}
tar cJf dbapi-${DBAPI_VER}.tar.xz dbapi-${DBAPI_VER}
touch ~/.s3cfg
s3cmd-1.5.0-alpha1/s3cmd put --access_key=${S3_ACCESS_KEY} --secret_key=${S3_SECRET_KEY} -P -f dbapi-${DBAPI_VER}.tar.xz $S3_BUCKET/dbapi-${DBAPI_VER}.tar.xz