User:Inductiveload/quick pwb

The script is at ../quick pwb.py.

The advantage of this file is you can save the run parameters for another time, it's easier to edit in a text-editor than on a command line and there is basic variable interpolation.

For this to work,  must be on your.

Input file format

 * Variables can be interpolated into any line
 * Set variables like this:
 * is special: it sets the PWB script to use. If not given, it's
 * The regexes are Python-style, so use, etc for references
 * Lines that start  are discarded
 * Other lines are PWB input arguments, one par line. Variables are interpolated before being passed to PWB
 * has the namespace split off, so you can write  rather than
 * The  has template names in the form   expanded to   so they are linked in the summary.

Every line is either a variable definition or it gets added as a PWB input argument, after any variables are replaced. It looks something like this:

$_SCRIPT=replace $MYVAR=Foo? -prefixindex:Catholic Encyclopedia (1913) -summary:Convert Foo to BaFoor -regex $MYVAR Ba\1r

Environment variables
You can set some variables in a file called  next to this script, or directly using environment variables:


 * the directory to find  in
 * a set of paths, separated by colons, to look for fix files in