From 1a135b330120d146fda19179ac830944e3091217 Mon Sep 17 00:00:00 2001 From: snj Date: Tue, 7 Sep 2021 22:28:31 +0000 Subject: [PATCH] Pull up following revision(s) (requested by martin in ticket #1694): distrib/sets/makesrctars: revision 1.43 PR 56389: do not include top level .git or .hg directories in source sets. --- distrib/sets/makesrctars | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/distrib/sets/makesrctars b/distrib/sets/makesrctars index e8c63352e131..1f5f8f8ea83e 100755 --- a/distrib/sets/makesrctars +++ b/distrib/sets/makesrctars @@ -1,6 +1,6 @@ #! /bin/sh # -# $NetBSD: makesrctars,v 1.41 2017/04/12 17:29:49 christos Exp $ +# $NetBSD: makesrctars,v 1.41.4.1 2021/09/07 22:28:31 snj Exp $ # # makesrctars srcdir setdir # Create source tarballs in setdir from the source under srcdir. @@ -84,8 +84,10 @@ makeset() 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='.'