diff options
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/.htaccess | 2 | ||||
| -rwxr-xr-x | utils/create-release-deb.sh | 23 | ||||
| -rwxr-xr-x | utils/create-release-tarball.sh | 6 | ||||
| -rwxr-xr-x | utils/update-schema-translations.sh | 19 | ||||
| -rwxr-xr-x | utils/update-translations.sh | 14 |
5 files changed, 6 insertions, 58 deletions
diff --git a/utils/.htaccess b/utils/.htaccess new file mode 100644 index 000000000..93169e4eb --- /dev/null +++ b/utils/.htaccess @@ -0,0 +1,2 @@ +Order deny,allow +Deny from all 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 deleted file mode 100755 index 663f5a9a2..000000000 --- a/utils/update-schema-translations.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -BASENAME=`basename $0` -TMPFILE="/tmp/$BASENAME-$$.tmp" -OUTFILE="include/localized_schema.php" - -cat schema/ttrss_schema_pgsql.sql | grep 'insert.*pref_name' | awk -F\' '{ print $8 }' > $TMPFILE -cat schema/ttrss_schema_pgsql.sql | grep 'insert.*pref_name' | awk -F\' '{ print $6 }' >> $TMPFILE - -echo "<?php # This file has been generated at: " `date` > $OUTFILE -echo >> $OUTFILE -cat utils/localized_schema.txt >> $OUTFILE -echo >> $OUTFILE - -cat $TMPFILE | grep -v '^$' | sed "s/.*/__('&');/" >> $OUTFILE - -echo "?>" >> $OUTFILE - -rm $TMPFILE diff --git a/utils/update-translations.sh b/utils/update-translations.sh index 8e49fac56..4b8dab6b9 100755 --- a/utils/update-translations.sh +++ b/utils/update-translations.sh @@ -1,20 +1,14 @@ #!/bin/sh TEMPLATE=messages.pot -./utils/update-schema-translations.sh +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 -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 --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 |