forked from I2P_Developers/i2p.i2p
- Fail build if gettext fails. Change property at top of build.xml if
you don't have gettext and want the build to continue.
This commit is contained in:
@ -9,6 +9,7 @@
|
|||||||
<property name="javadoc" value="javadoc"/>
|
<property name="javadoc" value="javadoc"/>
|
||||||
|
|
||||||
<property name="javac.compilerargs" value=""/>
|
<property name="javac.compilerargs" value=""/>
|
||||||
|
<property name="require.gettext" value="true" />
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<mkdir dir="${build}"/>
|
<mkdir dir="${build}"/>
|
||||||
@ -39,10 +40,10 @@
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="bundle" >
|
<target name="bundle" >
|
||||||
<exec executable="sh" osfamily="unix" failifexecutionfails="true" >
|
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="${require.gettext}" >
|
||||||
<arg value="./bundle-messages.sh" />
|
<arg value="./bundle-messages.sh" />
|
||||||
</exec>
|
</exec>
|
||||||
<exec executable="sh" osfamily="mac" failifexecutionfails="true" >
|
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="${require.gettext}" >
|
||||||
<arg value="./bundle-messages.sh" />
|
<arg value="./bundle-messages.sh" />
|
||||||
</exec>
|
</exec>
|
||||||
<!-- multi-lang is optional -->
|
<!-- multi-lang is optional -->
|
||||||
@ -109,15 +110,15 @@
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="poupdate">
|
<target name="poupdate">
|
||||||
<exec executable="sh" osfamily="unix" failifexecutionfails="true" >
|
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" >
|
||||||
<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" >
|
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" >
|
||||||
<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" >
|
<exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" >
|
||||||
<arg value="./bundle-messages.sh" />
|
<arg value="./bundle-messages.sh" />
|
||||||
<arg value="-p" />
|
<arg value="-p" />
|
||||||
</exec>
|
</exec>
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
CLASS=net.i2p.desktopgui.messages
|
CLASS=net.i2p.desktopgui.messages
|
||||||
TMPFILE=build/javafiles.txt
|
TMPFILE=build/javafiles.txt
|
||||||
export TZ=UTC
|
export TZ=UTC
|
||||||
|
RC=0
|
||||||
|
|
||||||
if [ "$1" = "-p" ]
|
if [ "$1" = "-p" ]
|
||||||
then
|
then
|
||||||
@ -76,15 +77,17 @@ do
|
|||||||
-o ${i}t
|
-o ${i}t
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo 'Warning - xgettext failed, not updating translations'
|
echo "ERROR - xgettext failed on ${i}, not updating translations"
|
||||||
rm -f ${i}t
|
rm -f ${i}t
|
||||||
|
RC=1
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
msgmerge -U --backup=none $i ${i}t
|
msgmerge -U --backup=none $i ${i}t
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo 'Warning - msgmerge failed, not updating translations'
|
echo "ERROR - msgmerge failed on ${i}, not updating translations"
|
||||||
rm -f ${i}t
|
rm -f ${i}t
|
||||||
|
RC=1
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
rm -f ${i}t
|
rm -f ${i}t
|
||||||
@ -101,11 +104,13 @@ do
|
|||||||
msgfmt --java --statistics -r $CLASS -l $LG -d build $i
|
msgfmt --java --statistics -r $CLASS -l $LG -d build $i
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo 'Warning - msgfmt failed, not updating translations'
|
echo "ERROR - msgfmt failed on ${i}, not updating translations"
|
||||||
|
# msgfmt leaves the class file there so the build would work the next time
|
||||||
|
find build -name messages_${LG}.class -exec rm -f {} \;
|
||||||
|
RC=1
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
rm -f $TMPFILE
|
rm -f $TMPFILE
|
||||||
# todo: return failure
|
exit $RC
|
||||||
exit 0
|
|
||||||
|
@ -22,7 +22,10 @@
|
|||||||
</classpath>
|
</classpath>
|
||||||
</depend>
|
</depend>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<property name="javac.compilerargs" value="" />
|
<property name="javac.compilerargs" value="" />
|
||||||
|
<property name="require.gettext" value="true" />
|
||||||
|
|
||||||
<target name="compile" depends="depend">
|
<target name="compile" depends="depend">
|
||||||
<mkdir dir="./build" />
|
<mkdir dir="./build" />
|
||||||
<mkdir dir="./build/obj" />
|
<mkdir dir="./build/obj" />
|
||||||
@ -111,10 +114,10 @@
|
|||||||
<target name="bundle" depends="compile">
|
<target name="bundle" depends="compile">
|
||||||
<!-- 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 -->
|
||||||
<exec executable="sh" osfamily="unix" failifexecutionfails="true" >
|
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="${require.gettext}" >
|
||||||
<arg value="./bundle-messages.sh" />
|
<arg value="./bundle-messages.sh" />
|
||||||
</exec>
|
</exec>
|
||||||
<exec executable="sh" osfamily="mac" failifexecutionfails="true" >
|
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="${require.gettext}" >
|
||||||
<arg value="./bundle-messages.sh" />
|
<arg value="./bundle-messages.sh" />
|
||||||
</exec>
|
</exec>
|
||||||
<!-- multi-lang is optional -->
|
<!-- multi-lang is optional -->
|
||||||
@ -125,15 +128,15 @@
|
|||||||
|
|
||||||
<target name="poupdate" depends="builddep, compile">
|
<target name="poupdate" depends="builddep, compile">
|
||||||
<!-- Update the messages_*.po files. -->
|
<!-- Update the messages_*.po files. -->
|
||||||
<exec executable="sh" osfamily="unix" failifexecutionfails="true" >
|
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" >
|
||||||
<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" >
|
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" >
|
||||||
<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" >
|
<exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" >
|
||||||
<arg value="./bundle-messages.sh" />
|
<arg value="./bundle-messages.sh" />
|
||||||
<arg value="-p" />
|
<arg value="-p" />
|
||||||
</exec>
|
</exec>
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
CLASS=org.klomp.snark.web.messages
|
CLASS=org.klomp.snark.web.messages
|
||||||
TMPFILE=build/javafiles.txt
|
TMPFILE=build/javafiles.txt
|
||||||
export TZ=UTC
|
export TZ=UTC
|
||||||
|
RC=0
|
||||||
|
|
||||||
if [ "$1" = "-p" ]
|
if [ "$1" = "-p" ]
|
||||||
then
|
then
|
||||||
@ -67,15 +68,17 @@ do
|
|||||||
-o ${i}t
|
-o ${i}t
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo 'Warning - xgettext failed, not updating translations'
|
echo "ERROR - xgettext failed on ${i}, not updating translations"
|
||||||
rm -f ${i}t
|
rm -f ${i}t
|
||||||
|
RC=1
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
msgmerge -U --backup=none $i ${i}t
|
msgmerge -U --backup=none $i ${i}t
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo 'Warning - msgmerge failed, not updating translations'
|
echo "ERROR - msgmerge failed on ${i}, not updating translations"
|
||||||
rm -f ${i}t
|
rm -f ${i}t
|
||||||
|
RC=1
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
rm -f ${i}t
|
rm -f ${i}t
|
||||||
@ -92,11 +95,13 @@ do
|
|||||||
msgfmt --java --statistics -r $CLASS -l $LG -d build/obj $i
|
msgfmt --java --statistics -r $CLASS -l $LG -d build/obj $i
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo 'Warning - msgfmt failed, not updating translations'
|
echo "ERROR - msgfmt failed on ${i}, not updating translations"
|
||||||
|
# msgfmt leaves the class file there so the build would work the next time
|
||||||
|
find build/obj -name messages_${LG}.class -exec rm -f {} \;
|
||||||
|
RC=1
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
rm -f $TMPFILE
|
rm -f $TMPFILE
|
||||||
# todo: return failure
|
exit $RC
|
||||||
exit 0
|
|
||||||
|
@ -20,7 +20,10 @@
|
|||||||
</classpath>
|
</classpath>
|
||||||
</depend>
|
</depend>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<property name="javac.compilerargs" value="" />
|
<property name="javac.compilerargs" value="" />
|
||||||
|
<property name="require.gettext" value="true" />
|
||||||
|
|
||||||
<target name="compile" depends="depend">
|
<target name="compile" depends="depend">
|
||||||
<mkdir dir="./build" />
|
<mkdir dir="./build" />
|
||||||
<mkdir dir="./build/obj" />
|
<mkdir dir="./build/obj" />
|
||||||
@ -83,10 +86,10 @@
|
|||||||
<target name="bundle" depends="compile, precompilejsp">
|
<target name="bundle" depends="compile, 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 -->
|
||||||
<exec executable="sh" osfamily="unix" failifexecutionfails="true" >
|
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="${require.gettext}" >
|
||||||
<arg value="./bundle-messages.sh" />
|
<arg value="./bundle-messages.sh" />
|
||||||
</exec>
|
</exec>
|
||||||
<exec executable="sh" osfamily="mac" failifexecutionfails="true" >
|
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="${require.gettext}" >
|
||||||
<arg value="./bundle-messages.sh" />
|
<arg value="./bundle-messages.sh" />
|
||||||
</exec>
|
</exec>
|
||||||
<!-- multi-lang is optional -->
|
<!-- multi-lang is optional -->
|
||||||
@ -97,15 +100,15 @@
|
|||||||
|
|
||||||
<target name="poupdate" depends="compile, precompilejsp">
|
<target name="poupdate" depends="compile, precompilejsp">
|
||||||
<!-- Update the messages_*.po files. -->
|
<!-- Update the messages_*.po files. -->
|
||||||
<exec executable="sh" osfamily="unix" failifexecutionfails="true" >
|
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" >
|
||||||
<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" >
|
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" >
|
||||||
<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" >
|
<exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" >
|
||||||
<arg value="./bundle-messages.sh" />
|
<arg value="./bundle-messages.sh" />
|
||||||
<arg value="-p" />
|
<arg value="-p" />
|
||||||
</exec>
|
</exec>
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
CLASS=net.i2p.i2ptunnel.web.messages
|
CLASS=net.i2p.i2ptunnel.web.messages
|
||||||
TMPFILE=build/javafiles.txt
|
TMPFILE=build/javafiles.txt
|
||||||
export TZ=UTC
|
export TZ=UTC
|
||||||
|
RC=0
|
||||||
|
|
||||||
if [ "$1" = "-p" ]
|
if [ "$1" = "-p" ]
|
||||||
then
|
then
|
||||||
@ -69,15 +70,17 @@ do
|
|||||||
-o ${i}t
|
-o ${i}t
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo 'Warning - xgettext failed, not updating translations'
|
echo "ERROR - xgettext failed on ${i}, not updating translations"
|
||||||
rm -f ${i}t
|
rm -f ${i}t
|
||||||
|
RC=1
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
msgmerge -U --backup=none $i ${i}t
|
msgmerge -U --backup=none $i ${i}t
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo 'Warning - msgmerge failed, not updating translations'
|
echo "ERROR - msgmerge failed on ${i}, not updating translations"
|
||||||
rm -f ${i}t
|
rm -f ${i}t
|
||||||
|
RC=1
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
rm -f ${i}t
|
rm -f ${i}t
|
||||||
@ -94,11 +97,13 @@ do
|
|||||||
msgfmt --java --statistics -r $CLASS -l $LG -d ../jsp/WEB-INF/classes $i
|
msgfmt --java --statistics -r $CLASS -l $LG -d ../jsp/WEB-INF/classes $i
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo 'Warning - msgfmt failed, not updating translations'
|
echo "ERROR - msgfmt failed on ${i}, not updating translations"
|
||||||
|
# msgfmt leaves the class file there so the build would work the next time
|
||||||
|
find src/WEB-INF/classes -name messages_${LG}.class -exec rm -f {} \;
|
||||||
|
RC=1
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
rm -f $TMPFILE
|
rm -f $TMPFILE
|
||||||
# todo: return failure
|
exit $RC
|
||||||
exit 0
|
|
||||||
|
@ -101,10 +101,10 @@
|
|||||||
<target name="bundle" depends="jar1, precompilejsp" >
|
<target name="bundle" depends="jar1, 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 -->
|
||||||
<exec executable="sh" osfamily="unix" failifexecutionfails="true" >
|
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="${require.gettext}" >
|
||||||
<arg value="./bundle-messages.sh" />
|
<arg value="./bundle-messages.sh" />
|
||||||
</exec>
|
</exec>
|
||||||
<exec executable="sh" osfamily="mac" failifexecutionfails="true" >
|
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="${require.gettext}" >
|
||||||
<arg value="./bundle-messages.sh" />
|
<arg value="./bundle-messages.sh" />
|
||||||
</exec>
|
</exec>
|
||||||
<!-- multi-lang is optional -->
|
<!-- multi-lang is optional -->
|
||||||
@ -133,15 +133,15 @@
|
|||||||
<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 -->
|
||||||
<exec executable="sh" osfamily="unix" failifexecutionfails="true" >
|
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" >
|
||||||
<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" >
|
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" >
|
||||||
<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" >
|
<exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" >
|
||||||
<arg value="./bundle-messages.sh" />
|
<arg value="./bundle-messages.sh" />
|
||||||
<arg value="-p" />
|
<arg value="-p" />
|
||||||
</exec>
|
</exec>
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
CLASS=net.i2p.router.web.messages
|
CLASS=net.i2p.router.web.messages
|
||||||
TMPFILE=build/javafiles.txt
|
TMPFILE=build/javafiles.txt
|
||||||
export TZ=UTC
|
export TZ=UTC
|
||||||
|
RC=0
|
||||||
|
|
||||||
if [ "$1" = "-p" ]
|
if [ "$1" = "-p" ]
|
||||||
then
|
then
|
||||||
@ -106,15 +107,17 @@ do
|
|||||||
-o ${i}t
|
-o ${i}t
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo 'Warning - xgettext failed, not updating translations'
|
echo "ERROR - xgettext failed on ${i}, not updating translations"
|
||||||
rm -f ${i}t
|
rm -f ${i}t
|
||||||
|
RC=1
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
msgmerge -U --backup=none $i ${i}t
|
msgmerge -U --backup=none $i ${i}t
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo 'Warning - msgmerge failed, not updating translations'
|
echo "ERROR - msgmerge failed on ${i}, not updating translations"
|
||||||
rm -f ${i}t
|
rm -f ${i}t
|
||||||
|
RC=1
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
rm -f ${i}t
|
rm -f ${i}t
|
||||||
@ -131,11 +134,13 @@ do
|
|||||||
msgfmt --java --statistics -r $CLASS -l $LG -d build/obj $i
|
msgfmt --java --statistics -r $CLASS -l $LG -d build/obj $i
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo 'Warning - msgfmt failed, not updating translations'
|
echo "ERROR - msgfmt failed on ${i}, not updating translations"
|
||||||
|
# msgfmt leaves the class file there so the build would work the next time
|
||||||
|
find build/obj -name messages_${LG}.class -exec rm -f {} \;
|
||||||
|
RC=1
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
rm -f $TMPFILE
|
rm -f $TMPFILE
|
||||||
# todo: return failure
|
exit $RC
|
||||||
exit 0
|
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
<pathelement location="../../../core/java/build/i2p.jar" />
|
<pathelement location="../../../core/java/build/i2p.jar" />
|
||||||
</path>
|
</path>
|
||||||
<property name="javac.compilerargs" value="" />
|
<property name="javac.compilerargs" value="" />
|
||||||
|
<property name="require.gettext" value="true" />
|
||||||
|
|
||||||
<target name="compile">
|
<target name="compile">
|
||||||
<mkdir dir="${bin}" />
|
<mkdir dir="${bin}" />
|
||||||
@ -120,10 +121,10 @@
|
|||||||
<target name="bundle" depends="compile, precompilejsp">
|
<target name="bundle" depends="compile, 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 -->
|
||||||
<exec executable="sh" osfamily="unix" failifexecutionfails="true" >
|
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="${require.gettext}" >
|
||||||
<arg value="./bundle-messages.sh" />
|
<arg value="./bundle-messages.sh" />
|
||||||
</exec>
|
</exec>
|
||||||
<exec executable="sh" osfamily="mac" failifexecutionfails="true" >
|
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="${require.gettext}" >
|
||||||
<arg value="./bundle-messages.sh" />
|
<arg value="./bundle-messages.sh" />
|
||||||
</exec>
|
</exec>
|
||||||
<!-- multi-lang is optional -->
|
<!-- multi-lang is optional -->
|
||||||
@ -134,15 +135,15 @@
|
|||||||
|
|
||||||
<target name="poupdate" depends="compile, precompilejsp">
|
<target name="poupdate" depends="compile, precompilejsp">
|
||||||
<!-- Update the messages_*.po files. -->
|
<!-- Update the messages_*.po files. -->
|
||||||
<exec executable="sh" osfamily="unix" failifexecutionfails="true" >
|
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" >
|
||||||
<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" >
|
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" >
|
||||||
<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" >
|
<exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" >
|
||||||
<arg value="./bundle-messages.sh" />
|
<arg value="./bundle-messages.sh" />
|
||||||
<arg value="-p" />
|
<arg value="-p" />
|
||||||
</exec>
|
</exec>
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
CLASS=i2p.susi.dns.messages
|
CLASS=i2p.susi.dns.messages
|
||||||
TMPFILE=tmp/javafiles.txt
|
TMPFILE=tmp/javafiles.txt
|
||||||
export TZ=UTC
|
export TZ=UTC
|
||||||
|
RC=0
|
||||||
|
|
||||||
if [ "$1" = "-p" ]
|
if [ "$1" = "-p" ]
|
||||||
then
|
then
|
||||||
@ -69,15 +70,17 @@ do
|
|||||||
-o ${i}t
|
-o ${i}t
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo 'Warning - xgettext failed, not updating translations'
|
echo "ERROR - xgettext failed on ${i}, not updating translations"
|
||||||
rm -f ${i}t
|
rm -f ${i}t
|
||||||
|
RC=1
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
msgmerge -U --backup=none $i ${i}t
|
msgmerge -U --backup=none $i ${i}t
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo 'Warning - msgmerge failed, not updating translations'
|
echo "ERROR - msgmerge failed on ${i}, not updating translations"
|
||||||
rm -f ${i}t
|
rm -f ${i}t
|
||||||
|
RC=1
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
rm -f ${i}t
|
rm -f ${i}t
|
||||||
@ -94,11 +97,13 @@ do
|
|||||||
msgfmt --java --statistics -r $CLASS -l $LG -d WEB-INF/classes $i
|
msgfmt --java --statistics -r $CLASS -l $LG -d WEB-INF/classes $i
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo 'Warning - msgfmt failed, not updating translations'
|
echo "ERROR - msgfmt failed on ${i}, not updating translations"
|
||||||
|
# msgfmt leaves the class file there so the build would work the next time
|
||||||
|
find WEB-INF/classes -name messages_${LG}.class -exec rm -f {} \;
|
||||||
|
RC=1
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
rm -f $TMPFILE
|
rm -f $TMPFILE
|
||||||
# todo: return failure
|
exit $RC
|
||||||
exit 0
|
|
||||||
|
@ -5,7 +5,10 @@
|
|||||||
<target name="builddep">
|
<target name="builddep">
|
||||||
<!-- run from top level build.xml to get dependencies built -->
|
<!-- run from top level build.xml to get dependencies built -->
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<property name="javac.compilerargs" value="" />
|
<property name="javac.compilerargs" value="" />
|
||||||
|
<property name="require.gettext" value="true" />
|
||||||
|
|
||||||
<target name="compile">
|
<target name="compile">
|
||||||
<javac
|
<javac
|
||||||
srcdir="./src/src"
|
srcdir="./src/src"
|
||||||
@ -66,10 +69,10 @@
|
|||||||
<target name="bundle" depends="compile">
|
<target name="bundle" depends="compile">
|
||||||
<!-- 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 -->
|
||||||
<exec executable="sh" osfamily="unix" failifexecutionfails="true" >
|
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="${require.gettext}" >
|
||||||
<arg value="./bundle-messages.sh" />
|
<arg value="./bundle-messages.sh" />
|
||||||
</exec>
|
</exec>
|
||||||
<exec executable="sh" osfamily="mac" failifexecutionfails="true" >
|
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="${require.gettext}" >
|
||||||
<arg value="./bundle-messages.sh" />
|
<arg value="./bundle-messages.sh" />
|
||||||
</exec>
|
</exec>
|
||||||
<!-- multi-lang is optional -->
|
<!-- multi-lang is optional -->
|
||||||
@ -80,15 +83,15 @@
|
|||||||
|
|
||||||
<target name="poupdate" depends="builddep, compile">
|
<target name="poupdate" depends="builddep, compile">
|
||||||
<!-- Update the messages_*.po files. -->
|
<!-- Update the messages_*.po files. -->
|
||||||
<exec executable="sh" osfamily="unix" failifexecutionfails="true" >
|
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" >
|
||||||
<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" >
|
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" >
|
||||||
<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" >
|
<exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" >
|
||||||
<arg value="./bundle-messages.sh" />
|
<arg value="./bundle-messages.sh" />
|
||||||
<arg value="-p" />
|
<arg value="-p" />
|
||||||
</exec>
|
</exec>
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
CLASS=i2p.susi.webmail.messages
|
CLASS=i2p.susi.webmail.messages
|
||||||
TMPFILE=javafiles.txt
|
TMPFILE=javafiles.txt
|
||||||
export TZ=UTC
|
export TZ=UTC
|
||||||
|
RC=0
|
||||||
|
|
||||||
if [ "$1" = "-p" ]
|
if [ "$1" = "-p" ]
|
||||||
then
|
then
|
||||||
@ -67,15 +68,17 @@ do
|
|||||||
-o ${i}t
|
-o ${i}t
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo 'Warning - xgettext failed, not updating translations'
|
echo "ERROR - xgettext failed on ${i}, not updating translations"
|
||||||
rm -f ${i}t
|
rm -f ${i}t
|
||||||
|
RC=1
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
msgmerge -U --backup=none $i ${i}t
|
msgmerge -U --backup=none $i ${i}t
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo 'Warning - msgmerge failed, not updating translations'
|
echo "ERROR - msgmerge failed on ${i}, not updating translations"
|
||||||
rm -f ${i}t
|
rm -f ${i}t
|
||||||
|
RC=1
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
rm -f ${i}t
|
rm -f ${i}t
|
||||||
@ -92,11 +95,14 @@ do
|
|||||||
msgfmt --java --statistics -r $CLASS -l $LG -d src/WEB-INF/classes $i
|
msgfmt --java --statistics -r $CLASS -l $LG -d src/WEB-INF/classes $i
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo 'Warning - msgfmt failed, not updating translations'
|
echo "ERROR - msgfmt failed on ${i}, not updating translations"
|
||||||
|
# msgfmt leaves the class file there so the build would work the next time
|
||||||
|
find src/WEB-INF/classes -name messages_${LG}.class -exec rm -f {} \;
|
||||||
|
RC=1
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
rm -f $TMPFILE
|
rm -f $TMPFILE
|
||||||
# todo: return failure
|
# todo: return failure
|
||||||
exit 0
|
exit $RC
|
||||||
|
@ -13,6 +13,9 @@
|
|||||||
<property name="javac.classpath" value="/PATH/TO/pack200.jar" />
|
<property name="javac.classpath" value="/PATH/TO/pack200.jar" />
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
<!-- change this to false if you don't have gettext -->
|
||||||
|
<property name="require.gettext" value="true" />
|
||||||
|
|
||||||
<!-- You probably don't want to change anything from here down -->
|
<!-- You probably don't want to change anything from here down -->
|
||||||
<target name="help" depends="all" />
|
<target name="help" depends="all" />
|
||||||
<target name="all" >
|
<target name="all" >
|
||||||
|
@ -1,9 +1,14 @@
|
|||||||
|
2011-06-13 zzz
|
||||||
|
* To ensure we don't release bad packages, fail the build
|
||||||
|
if gettext fails. Change property at top of build.xml if
|
||||||
|
you don't have gettext and want the build to continue.
|
||||||
|
|
||||||
2011-06-12 kytv
|
2011-06-12 kytv
|
||||||
* Add jcpuid files (32 & 64bit) for Intel Macs
|
* Add jcpuid files (32 & 64bit) for Intel Macs
|
||||||
* Compile jbigi-osx-none for Intel Macs. libjbigi-osx-none.jnilib
|
* Compile jbigi-osx-none for Intel Macs. libjbigi-osx-none.jnilib
|
||||||
is now a fat binary combining the already existing PPC
|
is now a fat binary combining the already existing PPC
|
||||||
compile and my new x86 build.
|
compile and my new x86 build.
|
||||||
|
|
||||||
2011-06-11 zzz
|
2011-06-11 zzz
|
||||||
* i2psnark Polish translation, thanks polacco
|
* i2psnark Polish translation, thanks polacco
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ public class RouterVersion {
|
|||||||
/** deprecated */
|
/** deprecated */
|
||||||
public final static String ID = "Monotone";
|
public final static String ID = "Monotone";
|
||||||
public final static String VERSION = CoreVersion.VERSION;
|
public final static String VERSION = CoreVersion.VERSION;
|
||||||
public final static long BUILD = 25;
|
public final static long BUILD = 26;
|
||||||
|
|
||||||
/** for example "-test" */
|
/** for example "-test" */
|
||||||
public final static String EXTRA = "";
|
public final static String EXTRA = "";
|
||||||
|
Reference in New Issue
Block a user