small fix
This commit is contained in:
parent
4fae87d527
commit
16f0618c0e
1 changed files with 5 additions and 2 deletions
|
@ -12,8 +12,11 @@ APPID=$(echo $APPNAME | tr '[A-Z]' '[a-z]')
|
||||||
TEMPLATESDIR=$(dirname $0)/templates/
|
TEMPLATESDIR=$(dirname $0)/templates/
|
||||||
APPDIR=$KIVYIOSROOT/app-$APPID
|
APPDIR=$KIVYIOSROOT/app-$APPID
|
||||||
OLD_LC_CTYPE=$LC_CTYPE
|
OLD_LC_CTYPE=$LC_CTYPE
|
||||||
|
OLD_LANG=$LANG
|
||||||
|
|
||||||
# fix for -> sed: RE error: illegal byte sequence
|
# fix for -> sed: RE error: illegal byte sequence
|
||||||
LC_CTYPE=C
|
LC_CTYPE=C
|
||||||
|
LANG=C
|
||||||
|
|
||||||
if [ "X$APPNAME" == "X" ]; then
|
if [ "X$APPNAME" == "X" ]; then
|
||||||
echo $(basename $0) "<appname> <source directory>"
|
echo $(basename $0) "<appname> <source directory>"
|
||||||
|
@ -42,9 +45,9 @@ try find $APPDIR -type f -exec sed -i '' "s/##SDKVER##/$SDKVER/g" {} \;
|
||||||
try find $APPDIR -type f -exec sed -i '' "s^##SRCDIR##^$SRCDIR^g" {} \;
|
try find $APPDIR -type f -exec sed -i '' "s^##SRCDIR##^$SRCDIR^g" {} \;
|
||||||
|
|
||||||
LC_CTYPE=$OLD_LC_CTYPE
|
LC_CTYPE=$OLD_LC_CTYPE
|
||||||
|
LANG=$OLD_LANG
|
||||||
|
|
||||||
echo "-> Done !"
|
echo "-> Done !"
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Your project is available at $APPDIR"
|
echo "Your project is available at $APPDIR"
|
||||||
echo
|
echo
|
||||||
|
|
Loading…
Reference in a new issue