summaryrefslogtreecommitdiff
path: root/archivers/dar/patches
diff options
context:
space:
mode:
authorrillig <rillig>2006-10-08 22:14:54 +0000
committerrillig <rillig>2006-10-08 22:14:54 +0000
commit4f0d6d135164bc1a138d6316d7bb62adfde8b688 (patch)
tree130f5ff22e46d162d6e4e8e501e2750bd2f0d0c9 /archivers/dar/patches
parent0974f870286c9b151ef561a7f4c36f0497c82500 (diff)
downloadpkgsrc-4f0d6d135164bc1a138d6316d7bb62adfde8b688.tar.gz
Fixed "test ==".
Diffstat (limited to 'archivers/dar/patches')
-rw-r--r--archivers/dar/patches/patch-ae39
1 files changed, 39 insertions, 0 deletions
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