From 29a4693b11cbfa3f2a4c3c517d54cbc155018ee8 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 1 Oct 2014 17:39:50 -0700 Subject: uhd: Added infrastructure for maintaining images directory --- images/make_zip.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 images/make_zip.sh (limited to 'images/make_zip.sh') diff --git a/images/make_zip.sh b/images/make_zip.sh new file mode 100755 index 000000000..6c44324f9 --- /dev/null +++ b/images/make_zip.sh @@ -0,0 +1,17 @@ +#!/bin/sh +# Automatically run the make-zip-file process +if [ ! -e 'make_zip.sh' ]; then + echo 'Are you running this from the images/ directory?' + exit 1 +fi +if [ -e 'build' ]; then + echo 'Please remove build subdirectory before proceeding.' + exit 1 +fi +mkdir build +cd build +cmake .. -DCPACK_GENERATOR=ZIP -DUHD_RELEASE_MODE="$1" .. +make package +mv uhd-images*.zip .. +cd .. +rm -r build -- cgit v1.2.3