Changeset 93045c2a
- Timestamp:
- Feb 12, 2011 11:30:21 AM (10 years ago)
- Branches:
- master
- Children:
- 1d1472c
- Parents:
- 2d260a8
- Location:
- apps
- Files:
-
- 8 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
apps/desktopgui/build.xml
r2d260a8 r93045c2a 46 46 <arg value="./bundle-messages.sh" /> 47 47 </exec> 48 <exec executable="cmd" osfamily="windows" failifexecutionfails="true" > 49 <arg value="/c" /> 50 <!-- no leading ./ here, windoz complains about it. --> 51 <arg value="bundle-messages.bat" /> 48 <exec executable="sh" osfamily="windows" failifexecutionfails="true" > 49 <arg value="./bundle-messages.sh" /> 52 50 </exec> 53 51 <jar basedir="${build}" destfile="${dist}/${jar}"> … … 83 81 <arg value="-p" /> 84 82 </exec> 85 <exec executable="cmd" osfamily="windows" failifexecutionfails="true" > 86 <arg value="/c" /> 87 <!-- no leading ./ here, windoz complains about it. --> 88 <arg value="bundle-messages.bat" /> 83 <exec executable="sh" osfamily="windows" failifexecutionfails="true" > 84 <arg value="./bundle-messages.sh" /> 89 85 <arg value="-p" /> 90 86 </exec> -
apps/desktopgui/bundle-messages.sh
r2d260a8 r93045c2a 20 20 fi 21 21 22 # on windows, one must specify the path of commnad find 23 # since windows has its own retarded version of find. 24 if which find|grep -q -i windows ; then 25 export PATH=.:/bin:/usr/local/bin:$PATH 26 fi 27 # Fast mode - update ondemond 28 echo Placing a file named messages_{LangCode}.only in locale folder, 29 echo will limit .po file update to the language specified by {LangCode}. 30 LG2=$(find locale -iname messages_*.only|tail -1) 31 [ LG2 ] && LG2=${LG2#locale/messages_} && LG2=${LG2%.only} 32 22 33 # add ../java/ so the refs will work in the po file 23 34 JPATHS="src" … … 27 38 LG=${i#locale/messages_} 28 39 LG=${LG%.po} 40 41 # skip, if specified 42 if [ $LG2 ]; then 43 [ $LG != $LG2 ] && continue || echo INFO: Language update is set to [$LG2] only. 44 fi 29 45 30 46 if [ "$POUPDATE" = "1" ] … … 34 50 fi 35 51 36 echo $LG37 52 if [ -s build/net/i2p/desktopgui/messages_$LG.class -a \ 38 53 build/net/i2p/desktopgui/messages_$LG.class -nt $i -a \ -
apps/i2psnark/java/build.xml
r2d260a8 r93045c2a 60 60 <!-- Update the messages_*.po files. 61 61 We need to supply the bat file for windows, and then change the fail property to true --> 62 <exec executable="sh" osfamily="unix" failifexecutionfails=" false" >62 <exec executable="sh" osfamily="unix" failifexecutionfails="true" > 63 63 <arg value="./bundle-messages.sh" /> 64 64 </exec> 65 <exec executable="sh" osfamily="mac" failifexecutionfails=" false" >65 <exec executable="sh" osfamily="mac" failifexecutionfails="true" > 66 66 <arg value="./bundle-messages.sh" /> 67 67 </exec> 68 <exec executable="cmd" osfamily="windows" failifexecutionfails="false" > 69 <arg value="/c" /> 70 <arg value="bundle-messages.bat" /> 68 <exec executable="sh" osfamily="windows" failifexecutionfails="true" > 69 <arg value="./bundle-messages.sh" /> 71 70 </exec> 72 71 </target> … … 82 81 <arg value="-p" /> 83 82 </exec> 84 <exec executable="cmd" osfamily="windows" failifexecutionfails="true" > 85 <arg value="/c" /> 86 <arg value="bundle-messages.bat" /> 83 <exec executable="sh" osfamily="windows" failifexecutionfails="true" > 84 <arg value="./bundle-messages.sh" /> 87 85 <arg value="-p" /> 88 86 </exec> -
apps/i2psnark/java/bundle-messages.sh
r2d260a8 r93045c2a 19 19 fi 20 20 21 # on windows, one must specify the path of commnad find 22 # since windows has its own retarded version of find. 23 if which find|grep -q -i windows ; then 24 export PATH=.:/bin:/usr/local/bin:$PATH 25 fi 26 # Fast mode - update ondemond 27 echo Placing a file named messages_{LangCode}.only in locale folder, 28 echo will limit .po file update to the language specified by {LangCode}. 29 LG2=$(find ../locale -iname messages_*.only|tail -1) 30 [ LG2 ] && LG2=${LG2#../locale/messages_} && LG2=${LG2%.only} 31 21 32 # add ../java/ so the refs will work in the po file 22 33 JPATHS="../java/src" … … 26 37 LG=${i#../locale/messages_} 27 38 LG=${LG%.po} 39 40 # skip, if specified 41 if [ $LG2 ]; then 42 [ $LG != $LG2 ] && continue || echo INFO: Language update is set to [$LG2] only. 43 fi 28 44 29 45 if [ "$POUPDATE" = "1" ] -
apps/i2ptunnel/java/build.xml
r2d260a8 r93045c2a 49 49 <!-- Update the messages_*.po files. 50 50 We need to supply the bat file for windows, and then change the fail property to true --> 51 <exec executable="sh" osfamily="unix" failifexecutionfails=" false" >51 <exec executable="sh" osfamily="unix" failifexecutionfails="true" > 52 52 <arg value="./bundle-messages.sh" /> 53 53 </exec> 54 <exec executable="sh" osfamily="mac" failifexecutionfails=" false" >54 <exec executable="sh" osfamily="mac" failifexecutionfails="true" > 55 55 <arg value="./bundle-messages.sh" /> 56 56 </exec> 57 <exec executable="cmd" osfamily="windows" failifexecutionfails="false" > 58 <arg value="/c" /> 59 <arg value="bundle-messages.bat" /> 57 <exec executable="sh" osfamily="windows" failifexecutionfails="true" > 58 <arg value="./bundle-messages.sh" /> 60 59 </exec> 61 60 </target> … … 71 70 <arg value="-p" /> 72 71 </exec> 73 <exec executable="cmd" osfamily="windows" failifexecutionfails="true" > 74 <arg value="/c" /> 75 <arg value="bundle-messages.bat" /> 72 <exec executable="sh" osfamily="windows" failifexecutionfails="true" > 73 <arg value="./bundle-messages.sh" /> 76 74 <arg value="-p" /> 77 75 </exec> -
apps/i2ptunnel/java/bundle-messages.sh
r2d260a8 r93045c2a 19 19 fi 20 20 21 # on windows, one must specify the path of commnad find 22 # since windows has its own retarded version of find. 23 if which find|grep -q -i windows ; then 24 export PATH=.:/bin:/usr/local/bin:$PATH 25 fi 26 # Fast mode - update ondemond 27 echo Placing a file named messages_{LangCode}.only in locale folder, 28 echo will limit .po file update to the language specified by {LangCode}. 29 LG2=$(find ../locale -iname messages_*.only|tail -1) 30 [ LG2 ] && LG2=${LG2#../locale/messages_} && LG2=${LG2%.only} 31 21 32 # add ../java/ so the refs will work in the po file 22 33 JPATHS="../java/src ../jsp/WEB-INF" … … 26 37 LG=${i#../locale/messages_} 27 38 LG=${LG%.po} 39 40 # skip, if specified 41 if [ $LG2 ]; then 42 [ $LG != $LG2 ] && continue || echo INFO: Language update is set to [$LG2] only. 43 fi 28 44 29 45 if [ "$POUPDATE" = "1" ] -
apps/routerconsole/java/build.xml
r2d260a8 r93045c2a 81 81 <!-- Update the messages_*.po files. 82 82 We need to supply the bat file for windows, and then change the fail property to true --> 83 <exec executable="sh" osfamily="unix" failifexecutionfails=" false" >84 <arg value="./bundle-messages.sh" /> 85 </exec> 86 <exec executable="sh" osfamily="mac" failifexecutionfails=" false" >87 <arg value="./bundle-messages.sh" /> 88 </exec> 89 <exec executable="sh" osfamily="windows" failifexecutionfails=" false" >83 <exec executable="sh" osfamily="unix" failifexecutionfails="true" > 84 <arg value="./bundle-messages.sh" /> 85 </exec> 86 <exec executable="sh" osfamily="mac" failifexecutionfails="true" > 87 <arg value="./bundle-messages.sh" /> 88 </exec> 89 <exec executable="sh" osfamily="windows" failifexecutionfails="true" > 90 90 <arg value="./bundle-messages.sh" /> 91 91 </exec> -
apps/susidns/src/build.xml
r2d260a8 r93045c2a 81 81 <!-- Update the messages_*.po files. 82 82 We need to supply the bat file for windows, and then change the fail property to true --> 83 <exec executable="sh" osfamily="unix" failifexecutionfails=" false" >83 <exec executable="sh" osfamily="unix" failifexecutionfails="true" > 84 84 <arg value="./bundle-messages.sh" /> 85 85 </exec> 86 <exec executable="sh" osfamily="mac" failifexecutionfails=" false" >86 <exec executable="sh" osfamily="mac" failifexecutionfails="true" > 87 87 <arg value="./bundle-messages.sh" /> 88 88 </exec> 89 <exec executable="cmd" osfamily="windows" failifexecutionfails="false" > 90 <arg value="/c" /> 91 <arg value="bundle-messages.bat" /> 89 <exec executable="sh" osfamily="windows" failifexecutionfails="true" > 90 <arg value="./bundle-messages.sh" /> 92 91 </exec> 93 92 </target> … … 103 102 <arg value="-p" /> 104 103 </exec> 105 <exec executable="cmd" osfamily="windows" failifexecutionfails="true" > 106 <arg value="/c" /> 107 <arg value="bundle-messages.bat" /> 104 <exec executable="sh" osfamily="windows" failifexecutionfails="true" > 105 <arg value="./bundle-messages.sh" /> 108 106 <arg value="-p" /> 109 107 </exec> -
apps/susidns/src/bundle-messages.sh
r2d260a8 r93045c2a 19 19 fi 20 20 21 # on windows, one must specify the path of commnad find 22 # since windows has its own retarded version of find. 23 if which find|grep -q -i windows ; then 24 export PATH=.:/bin:/usr/local/bin:$PATH 25 fi 26 # Fast mode - update ondemond 27 echo Placing a file named messages_{LangCode}.only in locale folder, 28 echo will limit .po file update to the language specified by {LangCode}. 29 LG2=$(find ../locale -iname messages_*.only|tail -1) 30 [ LG2 ] && LG2=${LG2#../locale/messages_} && LG2=${LG2%.only} 31 21 32 # add ../src/ so the refs will work in the po file 22 33 JPATHS="../src/java/ ../src/tmp/" … … 26 37 LG=${i#../locale/messages_} 27 38 LG=${LG%.po} 39 40 # skip, if specified 41 if [ $LG2 ]; then 42 [ $LG != $LG2 ] && continue || echo INFO: Language update is set to [$LG2] only. 43 fi 28 44 29 45 if [ "$POUPDATE" = "1" ]
Note: See TracChangeset
for help on using the changeset viewer.