Skip to content

Commit

Permalink
more error catching
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.littleshoot.org/svn/littleshoot/trunk/jni/jlibtorrent@7430 8d7aff80-242d-0410-bcee-ed6f15385b3d
  • Loading branch information
adamfisk committed Nov 4, 2010
1 parent 0f7039d commit 41e446e
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions release.bash
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
#!/usr/bin/env bash

mvn install -Dmaven.test.skip=true
cd ../../lib
tar czvf jnl.tgz libjnltorrent.jnilib
aws -putp littleshoot jnl.tgz
function die()
{
echo $*
exit 1
}

mvn install -Dmaven.test.skip=true || die "Could not build JNI lib"
cd ../../lib || die "Could not cd"
rm jnl.tgz
tar czvf jnl.tgz libjnltorrent.jnilib || die "Could not tgz"
aws -putp littleshoot jnl.tgz || die "Could no upload tgz"

cd -

0 comments on commit 41e446e

Please sign in to comment.