]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix generator of localized_schema.php
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 13 Dec 2011 09:18:34 +0000 (13:18 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 13 Dec 2011 09:18:48 +0000 (13:18 +0400)
utils/update-schema-translations.sh

index dff446506e07b368a32c9b2839b8cf721b5ee59a..663f5a9a27eeaa7f67e7eb8c86c6275781a781c9 100755 (executable)
@@ -2,17 +2,18 @@
 
 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` > localized_schema.php
-echo >> localized_schema.php
-cat utils/localized_schema.txt >> localized_schema.php
-echo >> localized_schema.php
+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/.*/__('&');/" >> localized_schema.php
+cat $TMPFILE | grep -v '^$' | sed "s/.*/__('&');/" >> $OUTFILE
 
-echo "?>" >> localized_schema.php
+echo "?>" >> $OUTFILE
 
 rm $TMPFILE