diff --git a/scripts/create_dmg.sh b/scripts/create_dmg.sh index 52579d777..2e71c5bf3 100644 --- a/scripts/create_dmg.sh +++ b/scripts/create_dmg.sh @@ -4,6 +4,11 @@ dir="`pwd`" version=$(cat ../config.h | grep VERSION | sed -e 's/.*\"\(.*\)\"/\1/g') distdir=ASEPRITE_$version +if [ ! -f create_dmg.sh ]; then + echo You must run create_dmg.sh from scripts/ directory + exit 1 +fi + if [ ! -f $distdir.dmg ] ; then cd "$dir/.." mkdir "$dir/$distdir" diff --git a/scripts/upload_packages.sh b/scripts/upload_packages.sh index 1a176f115..241f4ef8f 100644 --- a/scripts/upload_packages.sh +++ b/scripts/upload_packages.sh @@ -1,5 +1,10 @@ #! /bin/sh +if [ ! -f update_packages.sh ]; then + echo You must run update_packages.sh from scripts/ directory + exit 1 +fi + version=$(cat ../config.h | grep VERSION | sed -e 's/.*\"\(.*\)\"/\1/g') python=c:/Python27/python.exe