# General Public License for more details.
set -B
-
+
POTFILE="$1"
DOMAIN="$2"
COPYRIGHT="Robert Kooima"
# Second, extract from neverball sets and neverputt courses
echo "# Sets and courses"
for i in $(< "$SETS"); do
- # The file names in sets.txt don't have the prefix
- i=${i/#/"$DATA"/}
+ i="$DATA"/"$i"
# Only translate the two first lines
head -2 $i | while read -r d; do
echo
echo "#: $i"
- # Convert \ to \\
+ # Convert \ to \\
echo "msgid \"${d//\\/\\\\}\""
echo "msgstr \"\""
done >> $POTFILE
if test -n "$d" && echo "$d" | grep -v ".txt" &> /dev/null; then
echo
echo "#: $COURSES"
- # Convert \ to \\
+ # Convert \ to \\
echo "msgid \"${d//\\/\\\\}\""
echo "msgstr \"\""
fi