Add validation checks for scripts/ that they are being executed from the expected directory.

This commit is contained in:
David Capello 2012-08-22 21:26:52 -03:00
parent e31affc017
commit e89d087a04
2 changed files with 10 additions and 0 deletions

View File

@ -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"

View File

@ -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