Module Name: src Committed By: martin Date: Tue Sep 7 18:02:46 UTC 2021
Modified Files: src/distrib/sets: makesrctars Log Message: PR 56389: do not include top level .git or .hg directories in source sets. To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/distrib/sets/makesrctars Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/distrib/sets/makesrctars diff -u src/distrib/sets/makesrctars:1.42 src/distrib/sets/makesrctars:1.43 --- src/distrib/sets/makesrctars:1.42 Fri Sep 28 15:04:20 2018 +++ src/distrib/sets/makesrctars Tue Sep 7 18:02:46 2021 @@ -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 @@ 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='.'