Add demo.sh and test.sh for automating stuff

This commit is contained in:
Michal Szczepanski 2019-07-23 01:59:55 +02:00
parent 23c4586d28
commit 63710c2f8b
4 changed files with 21 additions and 3 deletions

6
.gitignore vendored

@ -7,4 +7,8 @@ docs
yarn.lock
# ide
*.iml
*.iml
# package
out
.external-ecmascript.js

@ -12,9 +12,11 @@ and [node.js](https://nodejs.org).
``pdfdig some_file.pdf``
#### or by clonning repository
#### or test by clonning repository
``git clone https://github.com/vane/pdf-gold-digger``
``node gd.js -f some_file.pdf``
then run
``sh demo.sh``
and see results in ``out`` directory
## Work in progress

5
demo.sh Executable file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
mkdir -p out
wget -O out/test.pdf -nc https://github.com/mozilla/pdf.js/raw/master/web/compressed.tracemonkey-pldi-09.pdf
node gd.js -f './out/test.pdf' -o json > out/test.json
node gd.js -f './out/test.pdf' -o text > out/test.txt

7
test.sh Executable file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
mkdir -p out
wget -O out/test.pdf -nc https://github.com/mozilla/pdf.js/raw/master/web/compressed.tracemonkey-pldi-09.pdf
node gd.js -f './out/test.pdf' -o json > out/test.json
node gd.js -f './out/test.pdf' -o text > out/test.txt
python3 -m json.tool out/test.json > out/test.formatted.json
yarn run esdoc