tazwok annotate examples/tazbb @ rev 516
Revert last commit.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon May 09 16:01:27 2011 +0000 (2011-05-09) |
parents | |
children |
rev | line source |
---|---|
slaxemulator@513 | 1 #!/bin/sh |
slaxemulator@513 | 2 |
slaxemulator@513 | 3 . /etc/slitaz/slitaz.conf |
slaxemulator@513 | 4 |
slaxemulator@513 | 5 LOCAL_REPOSITORY="$SLITAZ_DIR/${undigest:-$SLITAZ_VERSION}" |
slaxemulator@513 | 6 if [ -f $LOCAL_REPOSITORY/tazchroot.conf ]; then |
slaxemulator@513 | 7 . $LOCAL_REPOSITORY/tazchroot.conf |
slaxemulator@513 | 8 else |
slaxemulator@513 | 9 tazwok configure-chroot |
slaxemulator@513 | 10 . $LOCAL_REPOSITORY/tazchroot.conf |
slaxemulator@513 | 11 fi |
slaxemulator@513 | 12 |
slaxemulator@513 | 13 if [ -f $LOCAL_REPOSITORY/tazwok.conf ]; then |
slaxemulator@513 | 14 . $LOCAL_REPOSITORY/tazwok.conf |
slaxemulator@513 | 15 else |
slaxemulator@513 | 16 . /etc/slitaz/tazwok.conf |
slaxemulator@513 | 17 fi |
slaxemulator@513 | 18 |
slaxemulator@513 | 19 [ -d $chroot_dir ] || create_chroot |
slaxemulator@513 | 20 |
slaxemulator@513 | 21 if [ -f $LOCAL_REPOSITORY/chroot${1} -a -x $LOCAL_REPOSITORY/chroot${1} ]; then |
slaxemulator@513 | 22 mount_chroot |
slaxemulator@513 | 23 chroot $LOCAL_REPOSITORY/chroot $1 |
slaxemulator@513 | 24 umount_chroot |
slaxemulator@513 | 25 else |
slaxemulator@513 | 26 echo "Make sure to use full path and file is executable in chroot" |
slaxemulator@513 | 27 exit 1 |
slaxemulator@513 | 28 fi |
slaxemulator@513 | 29 |