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