summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-12-14 19:59:49 +0000
committerfrosch <frosch@openttd.org>2011-12-14 19:59:49 +0000
commit7f3227cd5c9eb593a0f6c9fbe2040589d6ffad19 (patch)
tree63750007e7cb3e792d6575ed5bd918ade512faa4 /src
parente0974b8632182fb43dbed13acadad7f3cb6e5c1a (diff)
downloadopenttd-7f3227cd5c9eb593a0f6c9fbe2040589d6ffad19.tar.xz
(svn r23514) -Fix: squirrel_export.sh failed for svn working copies.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/script/api/squirrel_export.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/api/squirrel_export.sh b/src/script/api/squirrel_export.sh
index bf54526e8..c1182ce8f 100755
--- a/src/script/api/squirrel_export.sh
+++ b/src/script/api/squirrel_export.sh
@@ -26,7 +26,7 @@ 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- | grep -v '\.svn\|/'`; do
if [ -z "$api" ]; then continue; fi
echo "Generating for API '$api' ..."
cd $api