2011-11-06 17:09:08 +01:00
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
2012-01-14 18:23:52 +01:00
|
|
|
|
ARGUMENTS=""
|
|
|
|
|
if [ "$1" == "-no-obsolete" ]; then
|
|
|
|
|
ARGUMENTS="-no-obsolete"
|
|
|
|
|
fi
|
2014-01-23 15:59:11 +01:00
|
|
|
|
|
|
|
|
|
# circular inclusions workaround - we comment that buggy line
|
2012-02-23 22:18:02 +01:00
|
|
|
|
sed -i 's/include(3rdparty/##temp/g' ../src/lib/lib.pro
|
2011-11-06 17:09:08 +01:00
|
|
|
|
|
2013-02-23 12:19:12 +01:00
|
|
|
|
cd ../src/lib/
|
|
|
|
|
lupdate $ARGUMENTS lib.pro -ts ../../translations/empty.ts
|
|
|
|
|
cd -
|
2014-01-23 15:59:11 +01:00
|
|
|
|
|
|
|
|
|
# uncomment it now
|
2012-02-23 22:18:02 +01:00
|
|
|
|
sed -i 's/##temp/include(3rdparty/g' ../src/lib/lib.pro
|
2011-11-06 17:09:08 +01:00
|
|
|
|
|
2014-01-23 15:59:11 +01:00
|
|
|
|
# it is needed to double <numerusform></numerusform> for transifex
|
|
|
|
|
awk '{ print $0; \
|
|
|
|
|
if (index($0, "<numerusform></numerusform>")) \
|
|
|
|
|
print $0; \
|
|
|
|
|
}' ../translations/empty.ts > tmp.ts
|
|
|
|
|
mv tmp.ts ../translations/empty.ts
|
|
|
|
|
|
2013-01-21 22:38:31 +01:00
|
|
|
|
exit 0
|