#!/bin/sh # We need to be in the working copy's root directory cd "`dirname "$0"`/.." # Add the comment to the top of the file cat > po/POTFILES.in << EOF # List of source files which contain translatable strings. EOF find lib src data po -type f | grep -e '\.c\(pp\|xx\)\?$' -e 'data.*strings.*\.txt$' -e 'data.*sequenceaudio.*\.tx.$' -e '\.slo$' -e '\.rmsg$' -e 'po/custom/.*\.txt' -e '\.js$' | grep -v -e '\.lex\.c\(pp\|xx\)\?$' -e '\.tab\.c\(pp\|xx\)\?$' -e 'lib/netplay/miniupnpc/*' -e 'lib/betawidget/*' -e '_moc\.' -e 'po/custom/files.js' | sort >> po/POTFILES.in