aboutsummaryrefslogtreecommitdiff
path: root/img2pdf.sh
diff options
context:
space:
mode:
authorache <ache@ache.one>2017-06-13 19:25:23 +0000
committerache <ache@ache.one>2017-06-13 19:25:23 +0000
commitb9e40031579ffd1d3a3812c9808294820895b3ce (patch)
tree741ae6dfc39621ccac43773f1c594b8df11bc90d /img2pdf.sh
parentconvert is bad (diff)
rename of img2pdf to imgs2pdf
Diffstat (limited to 'img2pdf.sh')
-rwxr-xr-ximg2pdf.sh30
1 files changed, 0 insertions, 30 deletions
diff --git a/img2pdf.sh b/img2pdf.sh
deleted file mode 100755
index a3c9a19..0000000
--- a/img2pdf.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/bash
-
-ext=$1
-out=$2
-
-if [ -z "$ext" ] ; then
- echo "img2pdf (png,jpg,tiff,...) (output)"
- exit
-fi
-if [ -z "$out" ] ; then
- out=$(basename `pwd`).pdf
-fi
-
-for img in $( echo `ls -v | egrep \."$ext"$` ) ; do
- echo Traitement de "$img"
- img2pdf --output "${img//$ext/pdf}" "$img"
-done;
-
-if [ -e "$out" ] ; then
- echo "Gestion backup"
- set -x
- rm "$out"
- set +x
-fi
-
-gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile="$out" `ls -v | egrep \.pdf$`
-
-for img in *."$ext" ; do
- rm "${img:0: $(( -1 + -${#ext} )) }.pdf"
-done;