summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-04-21 23:22:46 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:33 +0100
commit4d2d56cf8e10925e746b43a104cfbaebb88883db (patch)
tree4064f835ae10ef39330eb2b05bcd4a875ac71bd9
parentfb6e50b18b4a00b842b3ae1633ca24a1ddb71ad0 (diff)
downloadlive-build-4d2d56cf8e10925e746b43a104cfbaebb88883db.zip
live-build-4d2d56cf8e10925e746b43a104cfbaebb88883db.tar.gz
Getting architecture dynamically in images cron script.
-rwxr-xr-xexamples/cron/images.sh19
1 files 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