diff options
author | Daniel Baumann <daniel@debian.org> | 2008-04-21 23:22:46 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:03:33 +0100 |
commit | 4d2d56cf8e10925e746b43a104cfbaebb88883db (patch) | |
tree | 4064f835ae10ef39330eb2b05bcd4a875ac71bd9 /examples/cron | |
parent | fb6e50b18b4a00b842b3ae1633ca24a1ddb71ad0 (diff) | |
download | vyos-live-build-4d2d56cf8e10925e746b43a104cfbaebb88883db.tar.gz vyos-live-build-4d2d56cf8e10925e746b43a104cfbaebb88883db.zip |
Getting architecture dynamically in images cron script.
Diffstat (limited to 'examples/cron')
-rwxr-xr-x | examples/cron/images.sh | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/examples/cron/images.sh b/examples/cron/images.sh index 9fe08e768..672ff49c2 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 |