blob: 2c58c37ac9116793b970d4959356a3d933761f8f [file] [log] [blame]
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
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