summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rwxr-xr-xutils/create-release-deb.sh23
-rwxr-xr-xutils/create-release-tarball.sh6
-rwxr-xr-xutils/update-schema-translations.sh4
-rwxr-xr-xutils/update-translations.sh12
4 files changed, 8 insertions, 37 deletions
diff --git a/utils/create-release-deb.sh b/utils/create-release-deb.sh
deleted file mode 100755
index df2369afc..000000000
--- a/utils/create-release-deb.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh -ei
-
-if [ -z $1 ]; then
- echo usage: $0 VERSION
- exit 1
-fi
-
-git clone . dpkg-tmp/tt-rss
-cd dpkg-tmp/tt-rss
-git checkout $1
-
-debuild -i -us -uc
-#debuild -i -us -uc -b -aamd64
-
-cd ..
-
-if [ ! -z "$DEPLOY_DEBS" ]; then
- reprepro -b /var/www/apt include unstable tt-rss*_i386.changes
- #reprepro -b /var/www/apt include unstable tt-rss*_amd64.changes
-fi
-
-#cd ..
-#rm -rf dpkg-tmp
diff --git a/utils/create-release-tarball.sh b/utils/create-release-tarball.sh
deleted file mode 100755
index 935f0862c..000000000
--- a/utils/create-release-tarball.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-if [ -z $1 ]; then
- echo usage: $0 VERSION
- exit 1
-fi
-
-git archive --format=tar --prefix=tt-rss-$1/ $1 | gzip >tt-rss-$1.tar.gz
diff --git a/utils/update-schema-translations.sh b/utils/update-schema-translations.sh
index 663f5a9a2..d76fb03a4 100755
--- a/utils/update-schema-translations.sh
+++ b/utils/update-schema-translations.sh
@@ -1,5 +1,9 @@
#!/bin/sh
+LC_ALL=C
+LANG=C
+LANGUAGE=C
+
BASENAME=`basename $0`
TMPFILE="/tmp/$BASENAME-$$.tmp"
OUTFILE="include/localized_schema.php"
diff --git a/utils/update-translations.sh b/utils/update-translations.sh
index 8e49fac56..c2e8ff54f 100755
--- a/utils/update-translations.sh
+++ b/utils/update-translations.sh
@@ -3,18 +3,14 @@ TEMPLATE=messages.pot
./utils/update-schema-translations.sh
-xgettext -kT_js_decl -kT_sprintf -kT_ngettext:1,2 -k__ -L PHP -o $TEMPLATE *.php help/*.php mobile/*.php include/*.php `find classes -iname '*.php'` `find plugins -iname '*.php'` `find plugins -iname '*.js'`
+xgettext -kT_js_decl -kT_sprintf -kT_ngettext:1,2 -k__ -L PHP -o $TEMPLATE *.php include/*.php `find classes -iname '*.php'` `find plugins -iname '*.php'`
-xgettext --from-code utf-8 -k__ -L Java -j -o $TEMPLATE js/*.js
+xgettext --from-code utf-8 -k__ -knotify_info -knotify_progress -kngettext -L Java -j -o $TEMPLATE js/*.js `find plugins -iname '*.js'`
update_lang() {
if [ -f $1.po ]; then
- TMPFILE=/tmp/update-translations.$$
-
- msgmerge -o $TMPFILE $1.po $TEMPLATE
- mv $TMPFILE $1.po
- msgfmt --statistics $1.po
- msgfmt -o $1.mo $1.po
+ msgmerge --no-wrap --width 1 -U $1.po $TEMPLATE
+ msgfmt --statistics $1.po -o $1.mo
else
echo "Usage: $0 [-p|<basename>]"
fi