Skip to content

Commit

Permalink
Make sure there's a custom app_localization.lua before trying to use it.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 7, 2012
1 parent 233deb1 commit e98ff3f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/build-example.sh
Expand Up @@ -188,9 +188,11 @@ done
rm -f "$BASEDIR/image/scripts/config.luac"
./mojoluac $LUASTRIPOPT -o "$BASEDIR/image/scripts/config.luac" "$BASEDIR/scripts/config.lua"

# Don't want the example app_localization...use our's instead.
rm -f "$BASEDIR/image/scripts/app_localization.luac"
./mojoluac $LUASTRIPOPT -o "$BASEDIR/image/scripts/app_localization.luac" "$BASEDIR/scripts/app_localization.lua"
# Don't want the example app_localization...use ours instead if it exists.
if [ -f "$BASEDIR/scripts/app_localization.lua" ]; then
rm -f "$BASEDIR/image/scripts/app_localization.luac"
./mojoluac $LUASTRIPOPT -o "$BASEDIR/image/scripts/app_localization.luac" "$BASEDIR/scripts/app_localization.lua"
fi

# Fill in the rest of the Base Archive...
cd "$BASEDIR"
Expand Down

0 comments on commit e98ff3f

Please sign in to comment.