summaryrefslogtreecommitdiff
path: root/auto
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2012-10-15 06:50:41 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2012-10-15 06:50:41 +0200
commit02f06842b3f9dfd6c0d90ee4a27a7e50f202cf59 (patch)
tree708a0b2d496bdcfdb756070744fdd3b2d5027bb7 /auto
parent29bf6f4a39e8066ec252cbdbe7652491c375deee (diff)
downloadkanotix-02f06842b3f9dfd6c0d90ee4a27a7e50f202cf59.zip
kanotix-02f06842b3f9dfd6c0d90ee4a27a7e50f202cf59.tar.gz
added bootstrap64/32 cache support for new live-build bootstrap path
Diffstat (limited to 'auto')
-rwxr-xr-xauto/build18
1 files changed, 12 insertions, 6 deletions
diff --git a/auto/build b/auto/build
index f054d5c..c7469af 100755
--- a/auto/build
+++ b/auto/build
@@ -42,18 +42,24 @@ prebuild()
mkdir -p config/chroot_local-includes/root
cat config/* 2>/dev/null | grep ^LB_ > config/chroot_local-includes/root/build.conf
- if [ -d cache/stages_bootstrap ]; then
- bsbit=$(file cache/stages_bootstrap/bin/true | grep -q "ELF 64-bit" && echo 64 || echo 32)
- mv cache/stages_bootstrap cache/stages_bootstrap$bsbit
- fi
- [ -d cache/stages_bootstrap$bit ] && mv cache/stages_bootstrap$bit cache/stages_bootstrap
+ for bootstrap_dir in cache/stages_bootstrap cache/bootstrap
+ do
+ if [ -d ${bootstrap_dir} ]; then
+ bsbit=$(file ${bootstrap_dir}/bin/true | grep -q "ELF 64-bit" && echo 64 || echo 32)
+ mv ${bootstrap_dir} ${bootstrap_dir}$bsbit
+ fi
+ [ -d ${bootstrap_dir}$bit ] && mv ${bootstrap_dir}$bit ${bootstrap_dir}
+ done
rm -f kanotix$bit.iso
echo "LB_SYSLINUX_MENU_LIVE_ENTRY=\"$LABEL\"" >> config/binary
}
postbuild()
{
- [ -d cache/stages_bootstrap ] && mv cache/stages_bootstrap cache/stages_bootstrap$bit
+ for bootstrap_dir in cache/stages_bootstrap cache/bootstrap
+ do
+ [ -d ${bootstrap_dir} ] && mv ${bootstrap_dir} ${bootstrap_dir}$bit
+ done
[ -f binary-hybrid.iso ] && mv -f binary-hybrid.iso kanotix$bit.iso
[ -f binary.hybrid.iso ] && mv -f binary.hybrid.iso kanotix$bit.iso
}