Changeset 2d260a8


Ignore:
Timestamp:
Feb 12, 2011 10:50:58 AM (9 years ago)
Author:
walking <walking@…>
Branches:
master
Children:
93045c2a
Parents:
1ad005e
Message:

fix msgbundle under windows

Location:
apps/routerconsole/java
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/build.xml

    r1ad005e r2d260a8  
    8787            <arg value="./bundle-messages.sh" />
    8888        </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="false" >
     90            <arg value="./bundle-messages.sh" />
    9291        </exec>
    9392        <!-- jar again to get the latest messages_*.class files -->
     
    107106            <arg value="-p" />
    108107        </exec>
    109         <exec executable="cmd" osfamily="windows" failifexecutionfails="true" >
    110             <arg value="/c" />
    111             <arg value="bundle-messages.bat" />
     108        <exec executable="sh" osfamily="windows" failifexecutionfails="true" >
     109            <arg value="./bundle-messages.sh" />
    112110            <arg value="-p" />
    113111        </exec>
  • apps/routerconsole/java/bundle-messages.sh

    r1ad005e r2d260a8  
    1818        POUPDATE=1
    1919fi
     20
     21# on windows, one must specify the path of commnad find
     22# since windows has its own retarded version of find.
     23if which find|grep -q -i windows ; then
     24        export PATH=.:/bin:/usr/local/bin:$PATH
     25fi
     26# Fast mode - update ondemond
     27echo Placing a file named messages_{LangCode}.only in locale folder,
     28echo will limit .po file update to the language specified by {LangCode}.
     29LG2=$(find ../locale -iname messages_*.only|tail -1)
     30[ LG2 ] && LG2=${LG2#../locale/messages_} && LG2=${LG2%.only}
    2031
    2132#
     
    5465        LG=${i#../locale/messages_}
    5566        LG=${LG%.po}
     67       
     68        # skip, if specified
     69        if [ $LG2 ]; then
     70                [ $LG != $LG2 ] && continue || echo INFO: Language update is set to [$LG2] only.
     71        fi
    5672
    5773        if [ "$POUPDATE" = "1" ]
Note: See TracChangeset for help on using the changeset viewer.