7
#get the closest thing i have to an RTM pbuilder
8
wget -nc http://people.canonical.com/~cwayne/rtm-armhf.tgz
10
#copy over features file to compile apparmor cache and sources.list pointing to RTM archives
14
./click-sync.py --credentials-file ./auth s-jenkins.ubuntu-ci .
17
for i in `cat click_list`;do
18
echo "copything $i to out/clicks"
22
#run the build.sh script from within a clean utopic/rtm armhf chroot
23
sudo pbuilder --execute --basetgz ./rtm-armhf.tgz --bindmounts out -- build.sh
25
bzr branch lp:~savilerow-team/savilerow/mako-core-apps-rtm
27
cd out/mako-core-apps/src/system
29
#unpack the bits from the pbuilder step above (this should be cleaned up a bit)
30
tar zxvf ../../../custom.tgz
34
#build the custom tarball
36
# save the build ID as epoch seconds inside the tarball to facilitate updates
37
HMS=`echo $BUILD_ID | awk -F_ '{ print $2 }' | sed 's/-/:/g'`
38
DATE=`echo $BUILD_ID | awk -F_ ' { print $1 }'`
39
date -d "$DATE $HMS" +%s > build_id
40
cp build_id src/system/custom/
41
tar Jcvf build/custom.tar.xz --owner=root --group=root -C src/ system/
43
cp src/ubuntu_command build