Created
October 18, 2012 10:32
-
-
Save sasasin/3910917 to your computer and use it in GitHub Desktop.
ZIP書庫をPDFに変換するスクリプトです。dir2pdf.sh,jpg2pdf.pl,pdfdirectionを併せてセットアップする必要があります。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ls "$@" | while read f; do | |
echo "converting $f " | |
sleep 1 | |
OUTDIR=zip2pdf.$(date +%Y%m%d.%H%M%S) | |
mkdir "${OUTDIR}" | |
unzip -q -o -j "$f" -d "${OUTDIR}" | |
rm -f "${OUTDIR}".pdf | |
dir2pdf.sh "${OUTDIR}" | |
rm -rf "${OUTDIR}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment