tazwok view examples/tazbb @ rev 554

Compatibility fix for $install variable in compile_rules
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sun Mar 11 19:13:46 2012 +0100 (2012-03-11)
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