misc/180940: .git files shouldn't be includded when making a release

Piotr Kubaj pkubaj at riseup.net
Tue Jul 30 08:40:05 UTC 2013


>Number:         180940
>Category:       misc
>Synopsis:       .git files shouldn't be includded when making a release
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 30 08:40:04 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Piotr Kubaj
>Release:        10.0-CURRENT
>Organization:
>Environment:
FreeBSD NOTEBOOK 10.0-CURRENT FreeBSD 10.0-CURRENT #109: Mon Jul 29 23:14:33 CEST 2013     toor at NOTEBOOK:/usr/obj/usr/src/sys/NOTEBOOK amd64
>Description:
The Makefile script, located in $SRCDIR/release already excludes CVS and .svn files (as well as .zfs). But it doesn't work with a copy of FreeBSD source fetched from git, because of .git file that git creates. I know FreeBSD development takes place in SVN, but I use my computer to create an image of https://github.com/dumbbell/freebsd which is not yes in SVN.
>How-To-Repeat:
cd $SRCDIR
make buildworld
make buildkernel
make release
>Fix:
--- Makefile    2013-07-30 10:27:41.844501940 +0200
+++ Makefile.new        2013-07-30 10:28:43.864500616 +0200
@@ -97,14 +97,14 @@
 src.txz:
        mkdir -p ${DISTDIR}/usr
        ln -fs ${WORLDDIR} ${DISTDIR}/usr/src
-       cd ${DISTDIR} && tar cLvJf ${.OBJDIR}/src.txz --exclude .svn --exclude .zfs \
+       cd ${DISTDIR} && tar cLvJf ${.OBJDIR}/src.txz --exclude .git --exclude .svn --exclude .zfs \
            --exclude CVS --exclude @ --exclude usr/src/release/dist usr/src
 
 ports.txz:
        mkdir -p ${DISTDIR}/usr
        ln -fs ${PORTSDIR} ${DISTDIR}/usr/ports
        cd ${DISTDIR} && tar cLvJf ${.OBJDIR}/ports.txz \
-           --exclude CVS --exclude .svn \
+           --exclude CVS --exclude .svn --exclude .git\
            --exclude usr/ports/distfiles --exclude usr/ports/packages \
            --exclude 'usr/ports/INDEX*' --exclude work usr/ports


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list