tazwok view examples/tazbb @ rev 513

Updated Makefile. Added tazbb for automating build bot for tank using host crond. Added README.tazbb.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun May 08 22:36:23 2011 +0000 (2011-05-08)
parents
children
line source
1 #!/bin/sh
3 . /etc/slitaz/slitaz.conf
5 LOCAL_REPOSITORY="$SLITAZ_DIR/${undigest:-$SLITAZ_VERSION}"
6 if [ -f $LOCAL_REPOSITORY/tazchroot.conf ]; then
7 . $LOCAL_REPOSITORY/tazchroot.conf
8 else
9 tazwok configure-chroot
10 . $LOCAL_REPOSITORY/tazchroot.conf
11 fi
13 if [ -f $LOCAL_REPOSITORY/tazwok.conf ]; then
14 . $LOCAL_REPOSITORY/tazwok.conf
15 else
16 . /etc/slitaz/tazwok.conf
17 fi
19 [ -d $chroot_dir ] || create_chroot
21 if [ -f $LOCAL_REPOSITORY/chroot${1} -a -x $LOCAL_REPOSITORY/chroot${1} ]; then
22 mount_chroot
23 chroot $LOCAL_REPOSITORY/chroot $1
24 umount_chroot
25 else
26 echo "Make sure to use full path and file is executable in chroot"
27 exit 1
28 fi