diff options
author | Karl Berry <karl@freefriends.org> | 2010-09-11 23:13:58 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-09-11 23:13:58 +0000 |
commit | 273b76dcd2208b1ec892b19752d928cb5dce2246 (patch) | |
tree | d3dab44f8a9526da9b55507043a08594df70eda2 /Master/texmf-dist/doc/latex/confproc/papersinfo.sh | |
parent | ee1a2bb8d1dd8eef46592f2783f67198507feac7 (diff) |
confproc 0.7 (6aug10)
git-svn-id: svn://tug.org/texlive/trunk@19668 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/confproc/papersinfo.sh')
-rw-r--r-- | Master/texmf-dist/doc/latex/confproc/papersinfo.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/confproc/papersinfo.sh b/Master/texmf-dist/doc/latex/confproc/papersinfo.sh new file mode 100644 index 00000000000..61c444520d7 --- /dev/null +++ b/Master/texmf-dist/doc/latex/confproc/papersinfo.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +args=("$@") +GPATH=${args[0]} #= ~/proceedings/e-proceedings +TEXFILE=${args[1]} #= ICMC2009_proceedings +INPATH=${args[2]} #= papers_info +SPPATH=${args[3]} #= papers_split +PDFPATH=${args[4]} #= ~/proceedings/e-proceedings +PDFTKPATH=${args[5]} #= ~/pdftk_info + +PDFFILE=${TEXFILE}.pdf # for use in the paper_split.sh and paper_info.sh scripts + +cd ${GPATH}/${SPPATH} +filelist=`ls *.pdf` +mkdir ${PDFPATH} + +cd ${GPATH} +chmod +x removeLaTeXcmds.sh + +for file in $filelist +do + base=${file%%.*} + echo "removing LaTeX accents: ${base}.pdftk -> ${base}_clean.info" +# echo "cmd: removeLaTeXcmds.sh ${GPATH} ${PDFTKPATH}/${base}.pdftk ${INPATH}/${base}_clean.info" + ${GPATH}/removeLaTeXcmds.sh ${GPATH} ${PDFTKPATH}/${base}.pdftk ${INPATH}/${base}_clean.info + echo "adding PDF metadata: ${base}_clean.info -> ${base}.pdf" +# echo "cmd: pdftk ${SPPATH}/${base}.pdf update_info ${INPATH}/${base}_clean.info output ${PDFPATH}/${base}.pdf" + echo "pdftk ${GPATH}/${SPPATH}/${base}.pdf update_info ${GPATH}/${INPATH}/${base}_clean.info output ${PDFPATH}/${base}.pdf" + pdftk ${GPATH}/${SPPATH}/${base}.pdf update_info ${GPATH}/${INPATH}/${base}_clean.info output ${PDFPATH}/${base}.pdf +done |