diff options
author | seb <seb> | 2001-12-03 14:30:16 +0000 |
---|---|---|
committer | seb <seb> | 2001-12-03 14:30:16 +0000 |
commit | 53d855dff8a313e81705a0f62aebcf53e1d13bc6 (patch) | |
tree | 42c9a70ad24ecdd9f17cb55ef0c748a1768028c7 /pkgtools | |
parent | 1188dd78d3c44a83231783917bacc461ece9cb3e (diff) | |
download | pkgsrc-53d855dff8a313e81705a0f62aebcf53e1d13bc6.tar.gz |
Update to 0.103: pkgvi now support +cmd as first argument, it is passed down
as first argument to the editor.
Diffstat (limited to 'pkgtools')
-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 |