From 54ab894c5f1045ef66a6e8530cb982db68c6ebb6 Mon Sep 17 00:00:00 2001 From: Robert Nelson <robertcnelson@gmail.com> Date: Tue, 17 Dec 2013 21:11:33 -0600 Subject: [PATCH] ship: script Signed-off-by: Robert Nelson <robertcnelson@gmail.com> --- beagleboard.org_image.sh | 31 ++++++++++++++++++++++++++++++- rcn-ee_image.sh | 4 ++++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/beagleboard.org_image.sh b/beagleboard.org_image.sh index 2a432f4fa..7162a723c 100755 --- a/beagleboard.org_image.sh +++ b/beagleboard.org_image.sh @@ -125,7 +125,35 @@ compression () { cd ${DIR}/deploy/ tar cvf ${export_filename}.tar ./${export_filename} - xz -z -7 -v "${export_filename}.tar" + #xz -z -7 -v "${export_filename}.tar" + cd ${DIR}/ +} + +production () { + echo "Starting Production Stage" + cd ${DIR}/deploy/ + + cat > ${DIR}/deploy/ship.sh <<-__EOF__ + #!/bin/bash + + xz -z -7 -v debian-7.3-console-armhf-${time}.tar + + tar xf debian-7.3-console-armhf-${time}.tar.xz + + cd debian-7.3-console-armhf-${time}/ + sudo ./setup_sdcard.sh --img BBB-eMMC-flasher-debian-7.3-${time} --uboot bone --beagleboard.org-production --bbb-flasher + sudo ./setup_sdcard.sh --img-4gb BBB-debian-7.3-${time} --uboot bone --beagleboard.org-production + mv *.img ../ + cd .. + rm -rf debian-7.3-console-armhf-${time}/ || true + + xz -z -7 -v BBB-eMMC-flasher-debian-7.3-${time}-2gb.img + xz -z -7 -v BBB-debian-7.3-${time}-4gb.img + + __EOF__ + + chmod +x ${DIR}/deploy/ship.sh + cd ${DIR}/ } @@ -305,6 +333,7 @@ DEFAULT_RELEASES="wheezy" for REL in ${RELEASES:-$DEFAULT_RELEASES} ; do ${REL}_release done +production rm -rf ${tempdir} || true diff --git a/rcn-ee_image.sh b/rcn-ee_image.sh index c70fa66c0..2b28836e7 100755 --- a/rcn-ee_image.sh +++ b/rcn-ee_image.sh @@ -159,12 +159,14 @@ production () { sudo ./setup_sdcard.sh --img-4gb BBB-debian-7.3-${time} --uboot bone --beagleboard.org-production mv *.img ../ cd .. + rm -rf debian-7.3-console-armhf-${time}/ || true cd ubuntu-13.10-console-armhf-${time}/ sudo ./setup_sdcard.sh --img BBB-eMMC-flasher-ubuntu-13.10-${time}.img --uboot bone --beagleboard.org-production --bbb-flasher sudo ./setup_sdcard.sh --img-4gb BBB-ubuntu-13.10-${time}.img --uboot bone --beagleboard.org-production mv *.img ../ cd .. + rm -rf ubuntu-13.10-console-armhf-${time}/ || true xz -z -7 -v BBB-eMMC-flasher-debian-7.3-${time}-2gb.img xz -z -7 -v BBB-debian-7.3-${time}-4gb.img @@ -179,6 +181,8 @@ production () { cp ${DIR}/deploy/ship.sh ${actual_dir}/ship.sh chmod +x ${actual_dir}/ship.sh fi + + cd ${DIR}/ } kernel_chooser () { -- GitLab