Changeset 93045c2a


Ignore:
Timestamp:
Feb 12, 2011 11:30:21 AM (9 years ago)
Author:
walking <walking@…>
Branches:
master
Children:
1d1472c
Parents:
2d260a8
Message:

make windoz msg bundling suck less

Location:
apps
Files:
8 deleted
9 edited

Legend:

Unmodified
Added
Removed
  • apps/desktopgui/build.xml

    r2d260a8 r93045c2a  
    4646            <arg value="./bundle-messages.sh" />
    4747        </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" />
    5250        </exec>
    5351                <jar basedir="${build}" destfile="${dist}/${jar}">
     
    8381            <arg value="-p" />
    8482        </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" />
    8985            <arg value="-p" />
    9086        </exec>
  • apps/desktopgui/bundle-messages.sh

    r2d260a8 r93045c2a  
    2020fi
    2121
     22# on windows, one must specify the path of commnad find
     23# since windows has its own retarded version of find.
     24if which find|grep -q -i windows ; then
     25        export PATH=.:/bin:/usr/local/bin:$PATH
     26fi
     27# Fast mode - update ondemond
     28echo Placing a file named messages_{LangCode}.only in locale folder,
     29echo will limit .po file update to the language specified by {LangCode}.
     30LG2=$(find locale -iname messages_*.only|tail -1)
     31[ LG2 ] && LG2=${LG2#locale/messages_} && LG2=${LG2%.only}
     32
    2233# add ../java/ so the refs will work in the po file
    2334JPATHS="src"
     
    2738        LG=${i#locale/messages_}
    2839        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
    2945
    3046        if [ "$POUPDATE" = "1" ]
     
    3450        fi
    3551
    36     echo $LG
    3752        if [ -s build/net/i2p/desktopgui/messages_$LG.class -a \
    3853             build/net/i2p/desktopgui/messages_$LG.class -nt $i -a \
  • apps/i2psnark/java/build.xml

    r2d260a8 r93045c2a  
    6060        <!-- Update the messages_*.po files.
    6161             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" >
    6363            <arg value="./bundle-messages.sh" />
    6464        </exec>
    65         <exec executable="sh" osfamily="mac" failifexecutionfails="false" >
     65        <exec executable="sh" osfamily="mac" failifexecutionfails="true" >
    6666            <arg value="./bundle-messages.sh" />
    6767        </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" />
    7170        </exec>
    7271    </target>
     
    8281            <arg value="-p" />
    8382        </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" />
    8785            <arg value="-p" />
    8886        </exec>
  • apps/i2psnark/java/bundle-messages.sh

    r2d260a8 r93045c2a  
    1919fi
    2020
     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}
     31
    2132# add ../java/ so the refs will work in the po file
    2233JPATHS="../java/src"
     
    2637        LG=${i#../locale/messages_}
    2738        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
    2844
    2945        if [ "$POUPDATE" = "1" ]
  • apps/i2ptunnel/java/build.xml

    r2d260a8 r93045c2a  
    4949        <!-- Update the messages_*.po files.
    5050             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" >
    5252            <arg value="./bundle-messages.sh" />
    5353        </exec>
    54         <exec executable="sh" osfamily="mac" failifexecutionfails="false" >
     54        <exec executable="sh" osfamily="mac" failifexecutionfails="true" >
    5555            <arg value="./bundle-messages.sh" />
    5656        </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" />
    6059        </exec>
    6160    </target>
     
    7170            <arg value="-p" />
    7271        </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" />
    7674            <arg value="-p" />
    7775        </exec>
  • apps/i2ptunnel/java/bundle-messages.sh

    r2d260a8 r93045c2a  
    1919fi
    2020
     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}
     31
    2132# add ../java/ so the refs will work in the po file
    2233JPATHS="../java/src ../jsp/WEB-INF"
     
    2637        LG=${i#../locale/messages_}
    2738        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
    2844
    2945        if [ "$POUPDATE" = "1" ]
  • apps/routerconsole/java/build.xml

    r2d260a8 r93045c2a  
    8181        <!-- Update the messages_*.po files.
    8282             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" >
    9090            <arg value="./bundle-messages.sh" />
    9191        </exec>
  • apps/susidns/src/build.xml

    r2d260a8 r93045c2a  
    8181        <!-- Update the messages_*.po files.
    8282             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" >
    8484            <arg value="./bundle-messages.sh" />
    8585        </exec>
    86         <exec executable="sh" osfamily="mac" failifexecutionfails="false" >
     86        <exec executable="sh" osfamily="mac" failifexecutionfails="true" >
    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="true" >
     90            <arg value="./bundle-messages.sh" />
    9291        </exec>
    9392    </target>
     
    103102            <arg value="-p" />
    104103        </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" />
    108106            <arg value="-p" />
    109107        </exec>
  • apps/susidns/src/bundle-messages.sh

    r2d260a8 r93045c2a  
    1919fi
    2020
     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}
     31
    2132# add ../src/ so the refs will work in the po file
    2233JPATHS="../src/java/ ../src/tmp/"
     
    2637        LG=${i#../locale/messages_}
    2738        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
    2844
    2945        if [ "$POUPDATE" = "1" ]
Note: See TracChangeset for help on using the changeset viewer.