check for jigit-mkimage existence

master
George Danchev 12 years ago
parent 224042206f
commit 1d77ab8fbf
  1. 19
      releng/releng_build_isojigdo

@ -128,11 +128,20 @@ echo -e "$0: Creating ISO and jigdo representations:\n$CMD\n"
${CMD}
# create another one from jigdo files
jigit-mkimage \
-t ${IMG}.template \
-j ${IMG}.jigdo \
-m Debian=${DIR} \
-o ${IMG}.new
if which jigit-mkimage >/dev/null 2>&1; then
printf "$0: Creating new ISO from jigdo files..."
jigit-mkimage \
-t ${IMG}.template \
-j ${IMG}.jigdo \
-m Debian=${DIR} \
-o ${IMG}.new
printf "Done.\n"
else
printf "\n$0: Not found: jigit-mkimage. Install jigit.\n"
exit 1
fi
# trap the exit code of diff and let the Universe explode
diff ${IMG}.iso ${IMG}.new

Loading…
Cancel
Save