NDK_ROOT_DIR=`cd $NDK_ROOT_DIR && pwd`
# the release name
-RELEASE=1.5_r1
+RELEASE=1.5_r2
# the package prefix
PREFIX=android-ndk
# the list of supported host development systems
PREBUILT_SYSTEMS="linux-x86 darwin-x86 windows"
-
OPTION_HELP=no
for opt do
fi
done
-# the list of git files to copy into the archives
+# The list of git files to copy into the archives
GIT_FILES=`cd $NDK_ROOT_DIR && git ls-files`
# temporary directory used for packaging
echo "Creating reference from git files"
REFERENCE=$TMPDIR/reference &&
mkdir -p $REFERENCE &&
-(for ff in $GIT_FILES; do
- mkdir -p $REFERENCE/`dirname $ff` && cp -pf $NDK_ROOT_DIR/$ff $REFERENCE/$ff;
-done) &&
+(cd $NDK_ROOT_DIR && tar cf - $GIT_FILES) | (cd $REFERENCE && tar xf -) &&
rm -f $REFERENCE/Android.mk
if [ $? != 0 ] ; then
echo "Could not create git reference. Aborting."
echo "Done, please see packages in $TMPDIR:"
ls -l $TMPDIR
-