1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #!/bin/sh
- if [ -z "$ROOT_PATH" ]; then
- export ROOT_PATH=".."
- fi
- COMMUNITY_LANG_NL=$(grep --max-count=1 "^#define COMMUNITY_LANG_NL" $ROOT_PATH/Firmware/config.h| cut -d '_' -f3 |cut -d ' ' -f1)
- export NL=$COMMUNITY_LANG_NL
- echo "lang-community.sh started" >&2
- echo -n " Source code path: " >&2
- if [ -e $ROOT_PATH ]; then echo 'OK' >&2; else echo 'NG!' >&2; _err=1; fi
- echo " Found: " >&2
- if [ "$COMMUNITY_LANG_NL" = "NL" ]; then
- echo " $COMMUNITY_LANG_NL" >&2
- echo
- ./lang-build.sh nl
- fi
- finish()
- {
- if [ $1 -eq 0 ]; then
- echo "lang-community.sh finished with success" >&2
- else
- echo "lang-community.sh finished with errors!" >&2
- fi
- echo
- exit $1
- }
- finish 0
|