dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

topdf (250B)


      1 #!/usr/bin/env bash
      2 for f in "$@"
      3 do
      4 	filePathNoExtension="${f%.*}"
      5 	textutil -convert html -output "$filePathNoExtension.html" "$f"
      6 	cupsfilter "$filePathNoExtension.html" > "$filePathNoExtension.pdf"
      7 	rm "$filePathNoExtension.html" > /dev/null
      8 done