Date: Tue, 30 Jul 2013 08:32:02 GMT From: Piotr Kubaj <pkubaj@riseup.net> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/180940: .git files shouldn't be includded when making a release Message-ID: <201307300832.r6U8W2kV089671@oldred.freebsd.org> Resent-Message-ID: <201307300840.r6U8e5je036268@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307300832.r6U8W2kV089671>