Changeset - r23152:8287b07a3d23
[Not reviewed]
master
0 1 0
glx - 6 years ago 2019-01-13 18:12:33
glx@openttd.org
Fix: BSD find used by OSX requires explicit path
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/script/api/squirrel_export.sh
Show inline comments
 
@@ -17,25 +17,25 @@ AWK=gawk
 
${AWK} --version > /dev/null 2> /dev/null
 
if [ "$?" != "0" ]; then
 
	echo "This script needs gawk to run properly"
 
	exit 1
 
fi
 

	
 
# This must be called from within a src/???/api directory.
 
scriptdir=`dirname $0`
 
apilc=`pwd | sed "s@/api@@;s@.*/@@"`
 

	
 
# Check if we are in the root directory of the API, as then we generate all APIs
 
if [ "$apilc" = "script" ]; then
 
	for api in `find -type d | cut -b3-`; do
 
	for api in `find . -type d | cut -b3-`; do
 
		if [ -z "$api" ]; then continue; fi
 
		echo "Generating for API '$api' ..."
 
		cd $api
 
		sh $scriptdir/../`basename $0`
 
		cd ..
 
	done
 
	exit 0
 
fi
 

	
 
case $apilc in
 
	template) apiuc="Template" ;;
 
	ai) apiuc="AI" ;;
0 comments (0 inline, 0 general)