From 4d2d56cf8e10925e746b43a104cfbaebb88883db Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 21 Apr 2008 23:22:46 +0200 Subject: Getting architecture dynamically in images cron script. --- examples/cron/images.sh | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/examples/cron/images.sh b/examples/cron/images.sh index 9fe08e7..672ff49 100755 --- a/examples/cron/images.sh +++ b/examples/cron/images.sh @@ -2,6 +2,7 @@ set -e +ARCHITECTURE="$(dpkg --print-architecture)" DATE="$(date +%Y%m%d)" for DISTRIBUTION in etch lenny sid @@ -33,20 +34,20 @@ do fi - lh build | tee debian-live-${DISTRIBUTION}-i386-${FLAVOUR}.iso.log + lh build | tee debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.iso.log - mv binary.iso debian-live-${DISTRIBUTION}-i386-${FLAVOUR}.iso - mv binary.list debian-live-${DISTRIBUTION}-i386-${FLAVOUR}.iso.list - mv binary.packages debian-live-${DISTRIBUTION}-i386-${FLAVOUR}.iso.packages + mv binary.iso debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.iso + mv binary.list debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.iso.list + mv binary.packages debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.iso.packages mv source.tar.gz debian-live-${DISTRIBUTION}-source-${FLAVOUR}.tar.gz - mv source.list debian-live-${DISTRIBUTION}-i386-${FLAVOUR}.tar.gz.list + mv source.list debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.tar.gz.list lh clean --binary lh config -b usb-hdd - lh binary | tee debian-live-${DISTRIBUTION}-i386-${FLAVOUR}.img.log + lh binary | tee debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.img.log - mv binary.img debian-live-${DISTRIBUTION}-i386-${FLAVOUR}.img - mv binary.list debian-live-${DISTRIBUTION}-i386-${FLAVOUR}.img.list - mv binary.packages debian-live-${DISTRIBUTION}-i386-${FLAVOUR}.img.packages + mv binary.img debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.img + mv binary.list debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.img.list + mv binary.packages debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${FLAVOUR}.img.packages done done -- cgit v1.0