Skip to content
Browse files

android: added 'current' symlink creation/update to packaging to

simplify install.
  • Loading branch information...
1 parent f90622b commit 0cb62dc83a9ff3fe1bc7c8acb62af98293aa208e @kgilmer committed Apr 5, 2011
Showing with 10 additions and 0 deletions.
  1. +5 −0 scripts/build.sh
  2. +5 −0 scripts/package.sh
View
5 scripts/build.sh
@@ -87,6 +87,11 @@ tar rfps $DIST_DIR/tmp/rootfs.tar system
tar rfps $DIST_DIR/tmp/rootfs.tar data
cd $DIST_DIR/tmp
tar cfz $DIST_DIR/dist-$BUILD_TAG.tar.gz *
+cd ..
+if [ -h $DIST_DIR/current ]; then
+ rm $DIST_DIR/current
+fi
+ln -s $DIST_DIR/dist-$BUILD_TAG.tar.gz $DIST_DIR/current
# Cleanup
cd $WORKSPACE
rm -Rf $DIST_DIR/tmp
View
5 scripts/package.sh
@@ -67,6 +67,11 @@ tar rfps $DIST_DIR/tmp/rootfs.tar system
tar rfps $DIST_DIR/tmp/rootfs.tar data
cd $DIST_DIR/tmp
tar cfz $DIST_DIR/dist-$BUILD_TAG.tar.gz *
+cd ..
+if [ -h $DIST_DIR/current ]; then
+ rm $DIST_DIR/current
+fi
+ln -s $DIST_DIR/dist-$BUILD_TAG.tar.gz $DIST_DIR/current
echo "Packaged distributable: $DIST_DIR/dist-$BUILD_TAG.tar.gz"
# Cleanup
cd $WORKSPACE

0 comments on commit 0cb62dc

Please sign in to comment.
Something went wrong with that request. Please try again.