pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/install Remove "test ... -ef ...", which is unporta...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3def616361e1
branches:  trunk
changeset: 489013:3def616361e1
user:      tv <tv%pkgsrc.org@localhost>
date:      Mon Feb 14 16:30:35 2005 +0000

description:
Remove "test ... -ef ...", which is unportable.  Currently this is causing
syntax errors (and unchanged example files to be left behind) on Interix;
it probably causes a problem on others.

(This test appears to work around a case where two files were exactly the
same by inode, and have the script *not* delete the file in that case.
I'm not exactly sure why that is desirable at all.)

diffstat:

 mk/install/files |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r eb29cc25b55d -r 3def616361e1 mk/install/files
--- a/mk/install/files  Mon Feb 14 15:52:10 2005 +0000
+++ b/mk/install/files  Mon Feb 14 16:30:35 2005 +0000
@@ -1,6 +1,6 @@
 #!@SH@
 #
-# $NetBSD: files,v 1.1 2005/02/02 10:33:01 jlam Exp $
+# $NetBSD: files,v 1.2 2005/02/14 16:30:35 tv Exp $
 #
 # +FILES - reference-counted configuration file management script
 #
@@ -163,7 +163,6 @@
                                if ${TEST} -f "$preexist"; then
                                        :
                                elif ${TEST} -f "$file" -a -f "$f_eg" -a \
-                                            ! "$file" -ef "$f_eg" && \
                                             ${CMP} -s "$file" "$f_eg"; then
                                        ${RM} -f "$file"
                                fi



Home | Main Index | Thread Index | Old Index