pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkgdiff Update to version 0.113.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fab981c8ea8f
branches:  trunk
changeset: 460174:fab981c8ea8f
user:      seb <seb%pkgsrc.org@localhost>
date:      Sat Aug 23 19:40:18 2003 +0000

description:
Update to version 0.113.

Pkgvi fix: deal with pathnames like `dir-with.a-dot/file-without-dot'
for which the temporary file pathname hold in $tmp ended up as
`dir-with.a-dot/file-without-dot.$$.a-dot/file-without-dot'.

diffstat:

 pkgtools/pkgdiff/Makefile    |   4 ++--
 pkgtools/pkgdiff/files/pkgvi |  15 +++++++++------
 2 files changed, 11 insertions(+), 8 deletions(-)

diffs (44 lines):

diff -r 9cd489d19c14 -r fab981c8ea8f pkgtools/pkgdiff/Makefile
--- a/pkgtools/pkgdiff/Makefile Sat Aug 23 16:43:46 2003 +0000
+++ b/pkgtools/pkgdiff/Makefile Sat Aug 23 19:40:18 2003 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.39 2003/07/17 22:52:17 grant Exp $
+# $NetBSD: Makefile,v 1.40 2003/08/23 19:40:18 seb Exp $
 #
 
-DISTNAME=      pkgdiff-0.112
+DISTNAME=      pkgdiff-0.113
 WRKSRC=                ${WRKDIR}
 CATEGORIES=    pkgtools devel
 MASTER_SITES=  # empty
diff -r 9cd489d19c14 -r fab981c8ea8f pkgtools/pkgdiff/files/pkgvi
--- a/pkgtools/pkgdiff/files/pkgvi      Sat Aug 23 16:43:46 2003 +0000
+++ b/pkgtools/pkgdiff/files/pkgvi      Sat Aug 23 19:40:18 2003 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: pkgvi,v 1.8 2003/07/16 01:38:27 grant Exp $
+# $NetBSD: pkgvi,v 1.9 2003/08/23 19:40:19 seb Exp $
 #
 # Copyright (c) 2001 Tomasz Luchowski. All rights reserved.
 #
@@ -67,12 +67,15 @@
        exit 0
 fi
 
-tmp="$file.$$"
+bfile=`basename $file`
+dfile=`dirname $file`
+
+ext=`echo $bfile | awk -F. '{ print $NF }'`
 
-ext=`echo $file | awk -F. '{ print $NF }'`
-
-if [ "$file" != "$ext" ]; then
-       tmp=$tmp.$ext
+if [ "$bfile" != "$ext" ]; then
+       tmp="$dfile/$bfile.$$.$ext"
+else
+       tmp="$file.$$"
 fi
 
 cp "$file" "$tmp"



Home | Main Index | Thread Index | Old Index