Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: cabdb317cd
Fetching contributors…

Cannot retrieve contributors at this time

executable file 33 lines (25 sloc) 0.78 kb
#!/bin/bash
set -x
set -e
bin=`dirname "$0"`
bin=`cd "$bin"; pwd`
actual="$bin"/../actual
cd "$bin"/../..
rm -rf $actual/ch11/grunt
mkdir -p $actual/ch11/grunt
for f in ch11/src/main/grunt/*.grunt; do
out=$f.output.txt
pig -x local < $f 2> /dev/null \
| grep -v INFO \
| grep -v '^grunt> $' \
| sed -e 's|&|\&amp;|g' \
-e 's|"|\&quot;|g' \
-e 's|>|\&gt;|g' \
-e 's|<|\&lt;|g' \
-e 's|^\(grunt&gt; \)\(.*\)|<prompt moreinfo="none">\1</prompt><userinput moreinfo="none">\2</userinput>|' \
-e 's|^\(&gt;&gt; \)\(.*\)|<prompt moreinfo="none">\1</prompt><userinput moreinfo="none">\2</userinput>|' \
> $out
cat $out
python "$bin"/phragmite_pig.py $out $actual/ch11/grunt
rm $out
done
Jump to Line
Something went wrong with that request. Please try again.