pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/archivers/dar Fixed "test ==".
details: https://anonhg.NetBSD.org/pkgsrc/rev/66727aa0ee5c
branches: trunk
changeset: 519737:66727aa0ee5c
user: rillig <rillig%pkgsrc.org@localhost>
date: Sun Oct 08 22:14:54 2006 +0000
description:
Fixed "test ==".
diffstat:
archivers/dar/distinfo | 3 ++-
archivers/dar/patches/patch-ae | 39 +++++++++++++++++++++++++++++++++++++++
2 files changed, 41 insertions(+), 1 deletions(-)
diffs (57 lines):
diff -r 8742d375f66b -r 66727aa0ee5c archivers/dar/distinfo
--- a/archivers/dar/distinfo Sun Oct 08 22:13:07 2006 +0000
+++ b/archivers/dar/distinfo Sun Oct 08 22:14:54 2006 +0000
@@ -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-ab) = 1d8fb3bcd9c0d6a07cb6413d0b94453264f3d499
SHA1 (patch-ac) = 34ba67a1ae794c1069824347b67a204455d18f2e
SHA1 (patch-ad) = b880e88531a834a69e72b9450b0aee756024fd25
+SHA1 (patch-ae) = 54220384bf2031df64c38f5abea038382ca37e8e
diff -r 8742d375f66b -r 66727aa0ee5c archivers/dar/patches/patch-ae
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/dar/patches/patch-ae Sun Oct 08 22:14:54 2006 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index