Commit 34c811ca authored by Ken Manheimer's avatar Ken Manheimer

Set the PYTHONPATH to include ../.. of the script's directory, so

StructuredText.py finds ts_regex.

Changed to not depend on bash-specific shell features, so the script
can be (and is, by default) run with sh.
parent 7b944561
#!/bin/bash #!/bin/sh
# Compare current StructuredText.py processing against prior versions. # Compare current StructuredText.py processing against prior versions.
# You should see no output if there's no discrepancies. # You should see no output if there are no discrepancies.
regressdir=`dirname $0`
PYTHONPATH=`cd $regressdir/../..; pwd`:$PYTHONPATH
export PYTHONPATH
differences="" differences=""
for i in *.stx; do for i in *.stx; do
stx=$i stx=$i
base=${i%.stx} base=`basename $i .stx`
ref=$base.ref ref=$base.ref
new=$base.new new=$base.new
python ../StructuredText.py $stx > $new python ../StructuredText.py $stx > $new
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment