diff options
Diffstat (limited to 'addons/build-debian-tar')
-rwxr-xr-x | addons/build-debian-tar | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/addons/build-debian-tar b/addons/build-debian-tar new file mode 100755 index 0000000..2c58c37 --- /dev/null +++ b/addons/build-debian-tar @@ -0,0 +1,19 @@ +#!/system/bin/sh +set -e +# Build a tarball out of a android environment which I can then +# upload to places for people who want to expedite the install + +# This script runs on the device + +spath=$( cd "$(dirname "$0")" ; pwd -P ) +cd $spath + +./device-umount-all + +if [ ! -d debian ]; then echo "Error: environment to tar doesn't exist"; exit 1; fi + +rm -rf debian-tar; cp -r debian debian-tar; +rm -rf debian/debian; mv debian-tar debian/debian +./run-command "tar -zcf androdeb-fs.tgz --exclude='debian/kernel-headers' debian" +mv debian/androdeb-fs.tgz . +rm -rf debian/debian-tar |