Source-Changes-HG archive

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

[src/trunk]: src/distrib/sets PR 56389: do not include top level .git or .hg ...



details:   https://anonhg.NetBSD.org/src/rev/14f148156703
branches:  trunk
changeset: 1023446:14f148156703
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Sep 07 18:02:46 2021 +0000

description:
PR 56389: do not include top level .git or .hg directories
in source sets.

diffstat:

 distrib/sets/makesrctars |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r ff7995b81e6a -r 14f148156703 distrib/sets/makesrctars
--- a/distrib/sets/makesrctars  Tue Sep 07 16:56:25 2021 +0000
+++ b/distrib/sets/makesrctars  Tue Sep 07 18:02:46 2021 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 #
-#      $NetBSD: makesrctars,v 1.42 2018/09/28 15:04:20 martin Exp $
+#      $NetBSD: makesrctars,v 1.43 2021/09/07 18:02:46 martin Exp $
 #
 # makesrctars srcdir setdir
 #      Create source tarballs in setdir from the source under srcdir.
@@ -84,8 +84,10 @@
                cd "${dir}"
                srcprefix="${srcprefix}/${dir}"
        fi
-       # Gets rid of any obj dirs and things below it 
-       echo "obj" > "${intmp}"
+       # Gets rid of any obj dirs and things below it. Also skip
+       # .hg or .git repositories (if we got the source via git
+       # or mercurial)
+       printf "obj\n./.git\n./.hg\n" > "${intmp}"
        egrep="$*"
        if [ "${egrep}" = "" ]; then
                egrep='.'



Home | Main Index | Thread Index | Old Index