
Untitled
By: a guest on
Apr 28th, 2012 | syntax:
Bash | size: 0.32 KB | hits: 38 | expires: Never
#!/bin/bash
rm -f *.pdf
for file in *.odt
do
echo "converting $file"
ooffice -headless -pt Generic-CUPS-PDF-Printer $file
mv ~/`basename $file odt`pdf .
done
file_list=`ls chapter?.pdf`
echo "building thesis"
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=thesis.pdf $file_list
echo "done"