build: New poupdate-source target

This commit is contained in:
zzz
2018-01-18 10:18:11 +00:00
parent 7e4ff0ba85
commit 79d8a0ed11
10 changed files with 67 additions and 2 deletions

View File

@ -120,15 +120,20 @@
</target> </target>
<target name="poupdate"> <target name="poupdate">
<!-- set if unset -->
<property name="lg2" value="" />
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages.sh" /> <arg value="./bundle-messages.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages.sh" /> <arg value="./bundle-messages.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>
<exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages.sh" /> <arg value="./bundle-messages.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>

View File

@ -168,15 +168,20 @@
<target name="poupdate" depends="builddep, compile"> <target name="poupdate" depends="builddep, compile">
<!-- Update the messages_*.po files. --> <!-- Update the messages_*.po files. -->
<!-- set if unset -->
<property name="lg2" value="" />
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages.sh" /> <arg value="./bundle-messages.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages.sh" /> <arg value="./bundle-messages.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>
<exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages.sh" /> <arg value="./bundle-messages.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>

View File

@ -150,15 +150,20 @@
<target name="poupdate" depends="compile, precompilejsp"> <target name="poupdate" depends="compile, precompilejsp">
<!-- Update the messages_*.po files. --> <!-- Update the messages_*.po files. -->
<!-- set if unset -->
<property name="lg2" value="" />
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages.sh" /> <arg value="./bundle-messages.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages.sh" /> <arg value="./bundle-messages.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>
<exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages.sh" /> <arg value="./bundle-messages.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>
@ -200,15 +205,20 @@
<target name="poupdate-proxy" depends="extractProxyTags"> <target name="poupdate-proxy" depends="extractProxyTags">
<!-- Update the messages_*.po files. --> <!-- Update the messages_*.po files. -->
<!-- set if unset -->
<property name="lg2" value="" />
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages-proxy.sh" /> <arg value="./bundle-messages-proxy.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages-proxy.sh" /> <arg value="./bundle-messages-proxy.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>
<exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages-proxy.sh" /> <arg value="./bundle-messages-proxy.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>

View File

@ -127,15 +127,20 @@
<target name="poupdate" depends="builddep, compile"> <target name="poupdate" depends="builddep, compile">
<!-- Update the messages_*.po files. --> <!-- Update the messages_*.po files. -->
<!-- set if unset -->
<property name="lg2" value="" />
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages.sh" /> <arg value="./bundle-messages.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages.sh" /> <arg value="./bundle-messages.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>
<exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages.sh" /> <arg value="./bundle-messages.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>

View File

@ -189,15 +189,20 @@
<target name="poupdate" depends="precompilejsp"> <target name="poupdate" depends="precompilejsp">
<!-- Update the messages_*.po files. <!-- Update the messages_*.po files.
We need to supply the bat file for windows, and then change the fail property to true --> We need to supply the bat file for windows, and then change the fail property to true -->
<!-- set if unset -->
<property name="lg2" value="" />
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages.sh" /> <arg value="./bundle-messages.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages.sh" /> <arg value="./bundle-messages.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>
<exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages.sh" /> <arg value="./bundle-messages.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>
@ -253,30 +258,40 @@
</target> </target>
<target name="poupdate-news" depends="extractProxyTags"> <target name="poupdate-news" depends="extractProxyTags">
<!-- set if unset -->
<property name="lg2" value="" />
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages-news.sh" /> <arg value="./bundle-messages-news.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages-news.sh" /> <arg value="./bundle-messages-news.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>
<exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages-news.sh" /> <arg value="./bundle-messages-news.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>
</target> </target>
<target name="poupdate-countries" depends="extractProxyTags"> <target name="poupdate-countries" depends="extractProxyTags">
<!-- set if unset -->
<property name="lg2" value="" />
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages-countries.sh" /> <arg value="./bundle-messages-countries.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages-countries.sh" /> <arg value="./bundle-messages-countries.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>
<exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages-countries.sh" /> <arg value="./bundle-messages-countries.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>

View File

@ -164,15 +164,20 @@
<target name="poupdate" depends="compile, precompilejsp"> <target name="poupdate" depends="compile, precompilejsp">
<!-- Update the messages_*.po files. --> <!-- Update the messages_*.po files. -->
<!-- set if unset -->
<property name="lg2" value="" />
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages.sh" /> <arg value="./bundle-messages.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages.sh" /> <arg value="./bundle-messages.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>
<exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages.sh" /> <arg value="./bundle-messages.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>

View File

@ -143,15 +143,20 @@
<target name="poupdate" depends="builddep, compile"> <target name="poupdate" depends="builddep, compile">
<!-- Update the messages_*.po files. --> <!-- Update the messages_*.po files. -->
<!-- set if unset -->
<property name="lg2" value="" />
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages.sh" /> <arg value="./bundle-messages.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages.sh" /> <arg value="./bundle-messages.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>
<exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages.sh" /> <arg value="./bundle-messages.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>

View File

@ -705,10 +705,18 @@
<!-- end jbigi targets --> <!-- end jbigi targets -->
<target name="poupdate-source" depends="set-lg2-en, poupdate" />
<target name="set-lg2-en" >
<property name="lg2" value="en" />
</target>
<!-- the apps need to compile the jsps to poupdate --> <!-- the apps need to compile the jsps to poupdate -->
<target name="poupdate" depends="buildRouter, buildStreaming, buildSystray, buildJetty, buildDesktopGui, buildJrobin" > <target name="poupdate" depends="buildRouter, buildStreaming, buildSystray, buildJetty, buildDesktopGui, buildJrobin" >
<echo message="Setting environment variable LG2 to a lang code (eg: de,zh,nl etc)" /> <echo message="Setting environment variable LG2 to a lang code (eg: de,zh,nl etc)" />
<echo message=" will restrict language update to the language you specified, leaving other language untact." /> <echo message=" will restrict language update to the language you specified, leaving other language untact." />
<!-- set if unset -->
<property name="lg2" value="" />
<ant dir="apps/routerconsole/java/" > <ant dir="apps/routerconsole/java/" >
<target name="poupdate" /> <target name="poupdate" />
<target name="poupdate-news" /> <target name="poupdate-news" />

View File

@ -3,8 +3,10 @@
## One week before ## One week before
- Announce string freeze on #i2p-dev - Announce string freeze on #i2p-dev
- Update local English po files: `ant poupdate` - Update local English po files: `ant poupdate-source`
- Revert non-English changes if any - Review changes in English po files, fix up any necessary tagged strings in Java source
- Revert English po files with no actual changes (i.e. with line number changes only)
- Check in remaining English po files (and any files with changed strings)
- Push to Transifex: `tx push -s` - Push to Transifex: `tx push -s`
- Make announcement on Transifex with checkin deadline - Make announcement on Transifex with checkin deadline

View File

@ -18,16 +18,21 @@
</target> </target>
<target name="poupdate" > <target name="poupdate" >
<!-- set if unset -->
<property name="lg2" value="" />
<!-- Update the messages_*.po files. --> <!-- Update the messages_*.po files. -->
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages.sh" /> <arg value="./bundle-messages.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages.sh" /> <arg value="./bundle-messages.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>
<exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" > <exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" >
<env key="LG2" value="${lg2}" />
<arg value="./bundle-messages.sh" /> <arg value="./bundle-messages.sh" />
<arg value="-p" /> <arg value="-p" />
</exec> </exec>