4 TMPFILE="/tmp/$BASENAME-$$.tmp"
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
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
14 cat $TMPFILE | grep -v '^$' | sed "s/.*/__('&');/" >> localized_schema.php
16 echo "?>" >> localized_schema.php