equal
deleted
inserted
replaced
7 DEBVERSION=sid |
7 DEBVERSION=sid |
8 |
8 |
9 PRISTINE=/var/local/cache/pristine/$DEBVERSION |
9 PRISTINE=/var/local/cache/pristine/$DEBVERSION |
10 |
10 |
11 if [ ! -e $PRISTINE ] ; then |
11 if [ ! -e $PRISTINE ] ; then |
12 echo "Debian pristine image not found, try running create-source-image" |
12 echo "Missing:" $PRISTINE |
13 echo $PRISTINE |
13 echo "Debian pristine image not found, try running these commands as root:" |
|
14 echo mkdir -p /var/local/cache/pristine |
|
15 echo debootstrap $DEBVERSION $PRISTINE http://ftp.uk.debian.org/debian/ |
14 exit -1 |
16 exit -1 |
15 fi |
17 fi |
16 |
18 |
17 TOPDIR=`pwd` |
19 TOPDIR=`pwd` |
18 mkdir -p $TOPDIR/build/env |
20 mkdir -p $TOPDIR/build/env |
43 echo "Copying deb files out of cache" |
45 echo "Copying deb files out of cache" |
44 cp build/aptcache/$DEBVERSION/* $BACKING/var/cache/apt/archives || true |
46 cp build/aptcache/$DEBVERSION/* $BACKING/var/cache/apt/archives || true |
45 |
47 |
46 cp -av action $BACKING |
48 cp -av action $BACKING |
47 #hg -R ../mercurial-server archive -r default $BACKING/action/mercurial-server |
49 #hg -R ../mercurial-server archive -r default $BACKING/action/mercurial-server |
48 ( cd ../mercurial-server && \ |
50 ( cd $(hg root) && \ |
49 hg st -mac0n | cpio -p -0 -d $BACKING/action/mercurial-server ) |
51 hg st -mac0n | cpio -p -0 -d $BACKING/action/mercurial-server ) |
50 |
52 |
51 #cp ../mercurial-server/build/debian/mercurial-server_1.0-1_all.deb $BACKING/action |
53 #cp ../mercurial-server/build/debian/mercurial-server_1.0-1_all.deb $BACKING/action |
52 |
54 |
53 unionfs-fuse -o cow -o allow_other,suid,dev $BACKING=RW:$PRISTINE=RO $MOUNT |
55 unionfs-fuse -o cow -o allow_other,suid,dev $BACKING=RW:$PRISTINE=RO $MOUNT |