#!/bin/bash # # Author: Runa Sandvik, # Google Summer of Code 2009 # # This is Free Software (GPLv3) # http://www.gnu.org/licenses/gpl-3.0.txt # # This script will convert all of the English wml files in # https://svn.torproject.org/svn/website/trunk/ to pot files, and # keep them updated. The script will also convert subdirectories that # exist in the website module. # # For more information, see the HOWTO and README in # translation/tools/gsoc09. # ### start config ### # Location of the wml files wmldir="$PWD" # Location of the pot files. # Assuming that the translation directory is relative to the website podir="`dirname $wmldir`/translation/projects/website/po/templates" # Set the copyright holder of the files, # for example "The Tor Project, Inc" copyright="The Tor Project, Inc" # A lot of the wml files have custom tags. These tags have been defined # in website/include/versions.wmi. Tags that people usually forget to close, # as well as tags that are not defined in versions.wmi, have been added. # See: https://svn.torproject.org/svn/website/trunk/include/versions.wmi customtag=`echo $(cat "$wmldir/include/versions.wmi" | awk '{ printf "<%s> " , $2 }' | sed 's/<>//g') "