diff options
author | grant <grant@pkgsrc.org> | 2003-07-16 01:38:26 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2003-07-16 01:38:26 +0000 |
commit | 7b5455fa33c4269525a6e042c8ac0bb0bb7070ab (patch) | |
tree | 8b7f43013c54689d7b7b30c343828ab6c5fb0252 /pkgtools/pkgdiff | |
parent | 937d21f1b753fdbb43ec5c595ab42eca4df5bea5 (diff) | |
download | pkgsrc-7b5455fa33c4269525a6e042c8ac0bb0bb7070ab.tar.gz |
pkgvi: create temp files with the same extension as the original, so
editors can pick the right syntax.
bump PKGREVISION to 0.112.
Diffstat (limited to 'pkgtools/pkgdiff')
-rw-r--r-- | pkgtools/pkgdiff/Makefile | 4 | ||||
-rwxr-xr-x | pkgtools/pkgdiff/files/pkgvi | 8 |
2 files changed, 9 insertions, 3 deletions
diff --git a/pkgtools/pkgdiff/Makefile b/pkgtools/pkgdiff/Makefile index 2a360f26d67..6a822417e9d 100644 --- a/pkgtools/pkgdiff/Makefile +++ b/pkgtools/pkgdiff/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.37 2003/07/07 12:55:16 seb Exp $ +# $NetBSD: Makefile,v 1.38 2003/07/16 01:38:26 grant Exp $ # -DISTNAME= pkgdiff-0.111 +DISTNAME= pkgdiff-0.112 WRKSRC= ${WRKDIR} CATEGORIES= pkgtools devel MASTER_SITES= # empty diff --git a/pkgtools/pkgdiff/files/pkgvi b/pkgtools/pkgdiff/files/pkgvi index face632fe04..4b51b9c03df 100755 --- a/pkgtools/pkgdiff/files/pkgvi +++ b/pkgtools/pkgdiff/files/pkgvi @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: pkgvi,v 1.7 2001/12/03 14:30:17 seb Exp $ +# $NetBSD: pkgvi,v 1.8 2003/07/16 01:38:27 grant Exp $ # # Copyright (c) 2001 Tomasz Luchowski. All rights reserved. # @@ -69,6 +69,12 @@ fi tmp="$file.$$" +ext=`echo $file | awk -F. '{ print $NF }'` + +if [ "$file" != "$ext" ]; then + tmp=$tmp.$ext +fi + cp "$file" "$tmp" if [ $? -ne 0 ]; then |