Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 20 lines (13 sloc) 0.548 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#!/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
Something went wrong with that request. Please try again.