]> git.wh0rd.org Git - tt-rss.git/blob - utils/update-schema-translations.sh
remove DB_PORT from the list of required config keywords (closes #310)
[tt-rss.git] / utils / update-schema-translations.sh
1 #!/bin/sh
2
3 BASENAME=`basename $0`
4 TMPFILE="/tmp/$BASENAME-$$.tmp"
5
6 cat schema/ttrss_schema_pgsql.sql | grep 'insert.*pref_name' | awk -F\' '{ print $8 }' > $TMPFILE
7 cat schema/ttrss_schema_pgsql.sql | grep 'insert.*pref_name' | awk -F\' '{ print $6 }' >> $TMPFILE
8
9 echo "<?php # This file has been generated at: " `date` > localized_schema.php
10 echo >> localized_schema.php
11 cat utils/localized_schema.txt >> localized_schema.php
12 echo >> localized_schema.php
13
14 cat $TMPFILE | grep -v '^$' | sed "s/.*/__('&');/" >> localized_schema.php
15
16 echo "?>" >> localized_schema.php
17
18 rm $TMPFILE