mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-01 10:13:22 +00:00
Add validation checks for scripts/ that they are being executed from the expected directory.
This commit is contained in:
parent
e31affc017
commit
e89d087a04
@ -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"
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user