From b262b3016b1a35e74aeaa7363f7c5baaf14fedaa Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Wed, 31 Dec 2008 08:49:36 +0000 Subject: [PATCH] Check for Mac::Finder::DSStore in scripts/osx-dmg.sh and spit out a warning + url if it does not exist. Originally committed to SVN as r2584. --- scripts/osx-dmg.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/osx-dmg.sh b/scripts/osx-dmg.sh index 0e6d6565d..801c35f1c 100755 --- a/scripts/osx-dmg.sh +++ b/scripts/osx-dmg.sh @@ -21,6 +21,13 @@ if ! test -d "${PKG_DIR}"; then exit 1; fi +if ! perl -e 'require Mac::Finder::DSStore' > /dev/null 2>&1; then + echo + echo "Perl Mac::Finder::DSStore is required to build a dmg." + echo "Please get it from http://freehg.org/u/wiml/dsstore/" + exit; +fi + rm -rf ${TMP_DMG} "${PKG_NAME}.dmg" mkdir -v ${TMP_DMG} echo