diff options
author | rillig <rillig@pkgsrc.org> | 2006-10-08 22:14:54 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-10-08 22:14:54 +0000 |
commit | 4c40c721540d7bfea773d1ace902f26c4d06f835 (patch) | |
tree | 130f5ff22e46d162d6e4e8e501e2750bd2f0d0c9 /archivers/dar | |
parent | 10221a16121a5f04bec52d0e5d6cf26d0eb6f383 (diff) | |
download | pkgsrc-4c40c721540d7bfea773d1ace902f26c4d06f835.tar.gz |
Fixed "test ==".
Diffstat (limited to 'archivers/dar')
-rw-r--r-- | archivers/dar/distinfo | 3 | ||||
-rw-r--r-- | archivers/dar/patches/patch-ae | 39 |
2 files changed, 41 insertions, 1 deletions
diff --git a/archivers/dar/distinfo b/archivers/dar/distinfo index e7df3f3f80d..f967b1c6fc5 100644 --- a/archivers/dar/distinfo +++ b/archivers/dar/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.15 2006/10/07 07:10:29 obache Exp $ +$NetBSD: distinfo,v 1.16 2006/10/08 22:14:54 rillig Exp $ SHA1 (dar-2.3.1.tar.gz) = 184eb9bb14e3e7b2e52464bb9c9c62cc956058fa RMD160 (dar-2.3.1.tar.gz) = 168b04344de12fef53cafae2ea193ab49fbac179 @@ -7,3 +7,4 @@ SHA1 (patch-aa) = 6f07f2bf85194cdad58d99c7cafd85e3b2c06031 SHA1 (patch-ab) = 1d8fb3bcd9c0d6a07cb6413d0b94453264f3d499 SHA1 (patch-ac) = 34ba67a1ae794c1069824347b67a204455d18f2e SHA1 (patch-ad) = b880e88531a834a69e72b9450b0aee756024fd25 +SHA1 (patch-ae) = 54220384bf2031df64c38f5abea038382ca37e8e diff --git a/archivers/dar/patches/patch-ae b/archivers/dar/patches/patch-ae new file mode 100644 index 00000000000..92d4aad208a --- /dev/null +++ b/archivers/dar/patches/patch-ae @@ -0,0 +1,39 @@ +$NetBSD: patch-ae,v 1.3 2006/10/08 22:14:54 rillig Exp $ + +--- doc/samples/cdbackup.sh.orig 2003-07-22 23:01:34.000000000 +0200 ++++ doc/samples/cdbackup.sh 2006-10-08 23:37:24.000000000 +0200 +@@ -72,8 +72,8 @@ RM="/bin/rm" + #initial call of this script (just executes dar with the proper parameters): + DATE=`$DATECMD -I` + START=`$DATECMD` +-if [ "$1" != "" ] && [ "$2" == "" ] ; then +- if [ "$1" == "full" ] ; then ++if [ $# -eq 1 ] ; then ++ if [ "$1" = "full" ] ; then + echo "starting full backup" + $DAR_EXEC -c "$TDIR/$DATE" \ + -X "$DATE.*.dar" -X "darswap" \ +@@ -95,7 +95,7 @@ elif [ -r "$1/$2.$3.dar" ] ; then + echo -n "creating cdr $3 volume dir containing $2.$3.dar" + $MKDIR "$1/$2.$3.cdr" + $MV "$1/$2.$3.dar" "$1/$2.$3.cdr" +- if [ "$3" == "1" ] ; then ++ if [ "$3" = "1" ] ; then + echo -n " and dar_static" + $CP $DAR_STATIC "$1/$2.$3.cdr" + fi +@@ -109,12 +109,12 @@ elif [ -r "$1/$2.$3.dar" ] ; then + $CDRECORD -eject -s dev=$DEV speed=$DRIVESPEED tsize=${CDBLOCKS}s - + do + read -p "write error, try [A]gain or [k]eep $2.$3.dar? " ERR +- if [ "$ERR" == "k" ] ; then ++ if [ "$ERR" = "k" ] ; then + KEEPFILE="y" + break + fi + done +- if [ "$KEEPFILE" == "y" ] ; then ++ if [ "$KEEPFILE" = "y" ] ; then + echo "cdr not written, keeping $2.$3.dar as file" + $MV "$1/$2.$3.cdr/$2.$3.dar" "$1/$2.$3.dar" + fi |