From 0d86577c2776a5c58ae31a03a19f99cdf5bbaa08 Mon Sep 17 00:00:00 2001 From: Gerolf Ziegenhain Date: Sat, 24 Jan 2009 20:48:28 +0100 Subject: [PATCH] . --- .deb/DEBIAN/control | 2 +- .deb/opt/corvix/bin/fax | 9 +-------- fax | 9 +-------- 3 files changed, 3 insertions(+), 17 deletions(-) diff --git a/.deb/DEBIAN/control b/.deb/DEBIAN/control index 02ed2a0..59726a1 100644 --- a/.deb/DEBIAN/control +++ b/.deb/DEBIAN/control @@ -1,5 +1,5 @@ Package: fax-sipgate -Version: 0.1.1 +Version: 0.2 Depends: libfrontier-rpc-perl, xpdf-utils, texlive-base-bin Essential: no Priority: standard diff --git a/.deb/opt/corvix/bin/fax b/.deb/opt/corvix/bin/fax index 730305d..3800404 100755 --- a/.deb/opt/corvix/bin/fax +++ b/.deb/opt/corvix/bin/fax @@ -1,5 +1,4 @@ #!/bin/zsh -. /opt/corvix/etc/sipgate.de [[ -e $HOME/.sipgate.de ]] && . $HOME/.sipgate.de [[ -z $user ]] && exit 3 @@ -13,18 +12,12 @@ echo " arg2: file.pdf" [[ -z $2 ]] && exit 1 [[ ! -x $faxi ]] && exit 2 -if [[ -e $HOME/.phonebook ]]; then - if [[ grep $1 $HOME/.phonebook ]]; then - no=$(cat $HOME/.phonebook | awk '{print $2}') - fi -fi - no=$1 file=$2 [[ -e $file ]] || exit 1 pdftops $file - | ps2pdf - - > $file.good.pdf -faxi $user $pass $no $file.good.pdf +$faxi $user $pass $no $file.good.pdf rm $file.good.pdf diff --git a/fax b/fax index 730305d..3800404 100755 --- a/fax +++ b/fax @@ -1,5 +1,4 @@ #!/bin/zsh -. /opt/corvix/etc/sipgate.de [[ -e $HOME/.sipgate.de ]] && . $HOME/.sipgate.de [[ -z $user ]] && exit 3 @@ -13,18 +12,12 @@ echo " arg2: file.pdf" [[ -z $2 ]] && exit 1 [[ ! -x $faxi ]] && exit 2 -if [[ -e $HOME/.phonebook ]]; then - if [[ grep $1 $HOME/.phonebook ]]; then - no=$(cat $HOME/.phonebook | awk '{print $2}') - fi -fi - no=$1 file=$2 [[ -e $file ]] || exit 1 pdftops $file - | ps2pdf - - > $file.good.pdf -faxi $user $pass $no $file.good.pdf +$faxi $user $pass $no $file.good.pdf rm $file.good.pdf -- 2.11.4.GIT