From: Xavier Ducrohet Date: Mon, 11 May 2009 20:58:02 +0000 (-0700) Subject: Update the NDK packaging script to generate zip archives for all platforms. X-Git-Tag: android-x86-2.2~640^2~351 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=b161f18450d9c225097f02eaf23106a157393e8e;p=android-x86%2Fndk.git Update the NDK packaging script to generate zip archives for all platforms. --- diff --git a/build/tools/make-release.sh b/build/tools/make-release.sh index fa149bc..b4ab459 100755 --- a/build/tools/make-release.sh +++ b/build/tools/make-release.sh @@ -149,28 +149,14 @@ for SYSTEM in $PREBUILT_SYSTEMS; do exit 1 fi - case $SYSTEM in - # prefer zip format for windows and darwin - windows|darwin-*) - ARCHIVE=$BIN_RELEASE.zip - echo "Creating $ARCHIVE" - (cd $TMPDIR && zip -9qr $ARCHIVE $RELEASE_PREFIX && rm -rf $DSTDIR) 2>/dev/null 1>&2 - if [ $? != 0 ] ; then - echo "Could not create zip archive. Aborting." - exit 1 - fi - ;; - # or tar.bz2 for others - *) - ARCHIVE=$BIN_RELEASE.tar.bz2 - echo "Creating $ARCHIVE" - (cd $TMPDIR && tar cjf $ARCHIVE $RELEASE_PREFIX && rm -rf $DSTDIR) 2>/dev/null 1>&2 - if [ $? != 0 ] ; then - echo "Could not create archive. Aborting." - exit 1 - fi - ;; - esac + ARCHIVE=$BIN_RELEASE.zip + echo "Creating $ARCHIVE" + (cd $TMPDIR && zip -9qr $ARCHIVE $RELEASE_PREFIX && rm -rf $DSTDIR) 2>/dev/null 1>&2 + if [ $? != 0 ] ; then + echo "Could not create zip archive. Aborting." + exit 1 + fi + chmod a+r $TMPDIR/$ARCHIVE done