diff options
Diffstat (limited to 'images/make_zip.sh')
-rwxr-xr-x | images/make_zip.sh | 17 |
1 files changed, 17 insertions, 0 deletions
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 |