summaryrefslogtreecommitdiff
path: root/addons/build-debian-tar
blob: 2c58c37ac9116793b970d4959356a3d933761f8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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