fixed build with bundled OpenSSL
[public/netxms.git] / tools / pack_nls_files.sh
1 #!/bin/sh
2
3 lang=$1
4 addon=$2
5
6 if [ "x$lang" = "x" ]; then
7 echo "Usage: pack_nls_files.sh <lang>"
8 exit 1
9 fi
10
11 cd src/java/netxms-eclipse
12
13 rm -f nxmc-messages-$lang.zip
14 find . -name messages_$lang.properties | grep -v bin | xargs zip -r nxmc-messages-$lang.zip
15 find . -name bundle_$lang.properties | grep -v bin | xargs zip -r nxmc-messages-$lang.zip
16 mv nxmc-messages-$lang.zip ../../..
17 cd ../../../
18
19 if [ "x$addon" != "x" ]; then
20 cp nxmc-messages-$lang.zip $addon
21 cd $addon
22 find . -name messages_$lang.properties | grep -v bin | xargs zip -r nxmc-messages-$lang.zip
23 find . -name bundle_$lang.properties | grep -v bin | xargs zip -r nxmc-messages-$lang.zip
24 cd -
25 mv $addon/nxmc-messages-$lang.zip .
26 fi