make/java/java/localegen.sh

Print this page
rev 7998 : [mq]: 8024332

*** 33,47 **** # # A list of resource base name list; RESOURCE_NAMES=$1 ! # A list of US resources; ! US_FILES_LIST=$2 ! # A list of non-US resources; ! NONUS_FILES_LIST=$3 INPUT_FILE=$4 OUTPUT_FILE=$5 localelist= --- 33,47 ---- # # A list of resource base name list; RESOURCE_NAMES=$1 ! # A list of EN resources; ! EN_FILES_LIST=$2 ! # A list of non-EN resources; ! NONEN_FILES_LIST=$3 INPUT_FILE=$4 OUTPUT_FILE=$5 localelist=
*** 51,75 **** } sed_script="$SED -e \"s@^#warn .*@// -- This file was mechanically generated: Do not edit! -- //@\" " # ja-JP-JP and th-TH-TH need to be manually added, as they don't have any resource files. ! nonusall=" ja-JP-JP th-TH-TH " for FILE in $RESOURCE_NAMES do ! getlocalelist $FILE $US_FILES_LIST ! sed_script=$sed_script"-e \"s@#"$FILE"_USLocales#@$localelist@g\" " ! usall=$usall" "$localelist ! getlocalelist $FILE $NONUS_FILES_LIST ! sed_script=$sed_script"-e \"s@#"$FILE"_NonUSLocales#@$localelist@g\" " ! nonusall=$nonusall" "$localelist done ! usall=`(for LOC in $usall; do echo $LOC;done) |$SORT -u` ! nonusall=`(for LOC in $nonusall; do echo $LOC;done) |$SORT -u` ! sed_script=$sed_script"-e \"s@#AvailableLocales_USLocales#@$usall@g\" " ! sed_script=$sed_script"-e \"s@#AvailableLocales_NonUSLocales#@$nonusall@g\" " sed_script=$sed_script"$INPUT_FILE > $OUTPUT_FILE" eval $sed_script --- 51,75 ---- } sed_script="$SED -e \"s@^#warn .*@// -- This file was mechanically generated: Do not edit! -- //@\" " # ja-JP-JP and th-TH-TH need to be manually added, as they don't have any resource files. ! nonenall=" ja-JP-JP th-TH-TH " for FILE in $RESOURCE_NAMES do ! getlocalelist $FILE $EN_FILES_LIST ! sed_script=$sed_script"-e \"s@#"$FILE"_ENLocales#@$localelist@g\" " ! enall=$enall" "$localelist ! getlocalelist $FILE $NONEN_FILES_LIST ! sed_script=$sed_script"-e \"s@#"$FILE"_NonENLocales#@$localelist@g\" " ! nonenall=$nonenall" "$localelist done ! enall=`(for LOC in $enall; do echo $LOC;done) |$SORT -u` ! nonenall=`(for LOC in $nonenall; do echo $LOC;done) |$SORT -u` ! sed_script=$sed_script"-e \"s@#AvailableLocales_ENLocales#@$enall@g\" " ! sed_script=$sed_script"-e \"s@#AvailableLocales_NonENLocales#@$nonenall@g\" " sed_script=$sed_script"$INPUT_FILE > $OUTPUT_FILE" eval $sed_script