| 1 | #!/bin/bash |
| 2 | |
| 3 | domain=$1 |
| 4 | title=$2 |
| 5 | wt=$3 |
| 6 | |
| 7 | # Parsoid/PHP test |
| 8 | php bin/parse.php --domain $1 --pageName '$2' < $3 > $3.php.html |
| 9 | sed 's/<\/body>/<!--BOO--><\/body>/g;' < $3.php.html > $3.php.new.html |
| 10 | php bin/parse.php --domain $1 --pageName '$2' --selser --oldtextfile $3 --oldhtmlfile $3.php.html < $3.php.new.html > $3.php.new |
| 11 | |
| 12 | # Parsoid/JS test |
| 13 | node bin/parse.js --domain $1 --pageName '$2' < $3 > $3.js.html |
| 14 | sed 's/<\/body>/<!--BOOBOO--><\/body>/g;' < $3.js.html > $3.js.new.html |
| 15 | node bin/parse.js --domain $1 --pageName '$2' --selser --oldtextfile $3 --oldhtmlfile $3.js.html < $3.js.new.html > $3.js.new |
| 16 | |
| 17 | diff $3.php.new $3.js.new |