pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/libnbcompat/files Obfuscate embedded $NetBSD$...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cbb00cf455d2
branches:  trunk
changeset: 530214:cbb00cf455d2
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Jun 19 00:45:13 2007 +0000

description:
Obfuscate embedded $NetBSD$ strings a bit, so that pkgsrc doesn't pick
them up for +BUILD_VERSION. This makes matching against the output of
ident impossible to verify whether the package is up-to-date.

diffstat:

 pkgtools/libnbcompat/files/src2nbcompat |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r e3f5a944375b -r cbb00cf455d2 pkgtools/libnbcompat/files/src2nbcompat
--- a/pkgtools/libnbcompat/files/src2nbcompat   Tue Jun 19 00:23:51 2007 +0000
+++ b/pkgtools/libnbcompat/files/src2nbcompat   Tue Jun 19 00:45:13 2007 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-#      $NetBSD: src2nbcompat,v 1.8 2005/02/04 00:43:42 jlam Exp $
+#      $NetBSD: src2nbcompat,v 1.9 2007/06/19 00:45:13 joerg Exp $
 #
 # Copyright (c) 2003 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -124,7 +124,7 @@
                        { print }                                       \
                ' $_f > $_destdir/$_newf.tmp
                if [ -f $_destdir/$_newf ] &&                           \
-                  diff -q -I "\$NetBSD.*\$" $_destdir/$_newf $_destdir/$_newf.tmp >/dev/null; then
+                  diff -q -I "\$Net""BSD.*\$" $_destdir/$_newf $_destdir/$_newf.tmp >/dev/null; then
                        rm -f $_destdir/$_newf.tmp
                else
                        rm -f $_destdir/$_newf
@@ -135,7 +135,7 @@
                # Copy the manpage over, and generate the catpage.
                cp $_newf $_destdir/$_newf.tmp
                if [ -f $_destdir/$_newf ] &&                           \
-                  diff -q -I "\$NetBSD.*\$" $_destdir/$_newf $_destdir/$_newf.tmp >/dev/null; then
+                  diff -q -I "\$Net""BSD.*\$" $_destdir/$_newf $_destdir/$_newf.tmp >/dev/null; then
                        rm -f $_destdir/$_newf.tmp
                else
                        mv -f $_destdir/$_newf.tmp $_destdir/$_newf
@@ -147,7 +147,7 @@
                # Everything else just gets copied verbatim.
                cp $_newf $_destdir/$_newf.tmp
                if [ -f $_destdir/$_newf ] &&                           \
-                  diff -q -I "\$NetBSD.*\$" $_destdir/$_newf $_destdir/$_newf.tmp >/dev/null; then
+                  diff -q -I "\$Net""BSD.*\$" $_destdir/$_newf $_destdir/$_newf.tmp >/dev/null; then
                        rm -f $_destdir/$_newf.tmp
                else
                        mv -f $_destdir/$_newf.tmp $_destdir/$_newf



Home | Main Index | Thread Index | Old Index