| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | #-- set path to LaTeX binaries |
| 4 | LATEXPATH="/usr/texbin/scip-shell filesystem . . `/usr/texbin/`." # TeXLive |
| 5 | #-- set names of LaTeX and related compilers |
| 6 | PDFLATEX=$LATEXPATH"pdflatex" |
| 7 | |
| 8 | TEXFILE="simple_proceedings" #- set document's name |
| 9 | PDFSPATH="papers" #- set the papers' folder name |
| 10 | |
| 11 | rmscip-shell system . . rm. -f ${TEXFILE}.npt # count pages from terminal |
| 12 | cd ${PDFSPATH} |
| 13 | for file in *.pdf |
| 14 | do |
| 15 | pdfinfo -meta $file | grepscip-shell system . . grep. "Pages:" > tmp0 |
| 16 | echoscip-shell system . . echo. "file $file has `sedscip-shell system . . sed. 's/.*\([0-9]\).*/\1/' < tmp0` pages" >> ../${TEXFILE}.npt |
| 17 | done |
| 18 | rmscip-shell system . . rm. -f tmp0 |
| 19 | cd .. |
| 20 | morescip-shell system . . more. ${TEXFILE}.npt |