diff options
-rw-r--r-- | pkgtools/pkgdiff/Makefile | 4 | ||||
-rwxr-xr-x | pkgtools/pkgdiff/files/pkgvi | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/pkgtools/pkgdiff/Makefile b/pkgtools/pkgdiff/Makefile index 446aab6c033..cb46208a3ea 100644 --- a/pkgtools/pkgdiff/Makefile +++ b/pkgtools/pkgdiff/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.20 2001/11/19 08:03:37 tron Exp $ +# $NetBSD: Makefile,v 1.21 2001/12/03 14:30:16 seb Exp $ # -DISTNAME= pkgdiff-0.102 +DISTNAME= pkgdiff-0.103 CATEGORIES= pkgtools devel MASTER_SITES= # empty DISTFILES= # empty diff --git a/pkgtools/pkgdiff/files/pkgvi b/pkgtools/pkgdiff/files/pkgvi index e2bdcf3aeee..face632fe04 100755 --- a/pkgtools/pkgdiff/files/pkgvi +++ b/pkgtools/pkgdiff/files/pkgvi @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: pkgvi,v 1.6 2001/03/16 13:11:41 wiz Exp $ +# $NetBSD: pkgvi,v 1.7 2001/12/03 14:30:17 seb Exp $ # # Copyright (c) 2001 Tomasz Luchowski. All rights reserved. # @@ -48,6 +48,10 @@ then fi file="$1" +cmd="" +case x"$file" in + x+*) cmd="$1"; shift ; file="$1" ;; +esac if [ ! -f "$file" ] then @@ -57,7 +61,7 @@ fi if [ -f $file.orig ] then - $editor $file + $editor $cmd $file echo "$progname: Backup already exists. For a diff type:" echo "pkgdiff $file" exit 0 @@ -72,7 +76,7 @@ if [ $? -ne 0 ]; then exit 1 fi -$editor "$tmp" +$editor $cmd "$tmp" if cmp "$file" "$tmp" >/dev/null 2>&1 then |