ltib
[Top][All Lists]
Advanced

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

Re: [Ltib] Patch merge.spec to prune VCS (not just CVS) files


From: Stuart Hughes
Subject: Re: [Ltib] Patch merge.spec to prune VCS (not just CVS) files
Date: Fri, 18 Sep 2009 17:05:53 +0100
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Peter,

Applied and checked-in to CVS.

Thanks, Stuart

Peter Barada wrote:
Since I'm using SVN to support my LTIB work, I see .svn directories sneek into the rootfs via the platform merge directories. Here's a patch to merge.spec that should prune out any CVS, SVN, or GIT Version Control System metadata:

Index: dist/lfs-5.1/merge/merge.spec
===================================================================
--- dist/lfs-5.1/merge/merge.spec       (revision 7984)
+++ dist/lfs-5.1/merge/merge.spec       (working copy)
@@ -35,7 +35,7 @@
     if [ -d $dir ]
     then
         cd $dir
-        find . -name CVS -prune -o -perm -444 ! -type b ! -type c -print0 
2>/dev/null |  cpio -p0d  --quiet $RPM_BUILD_ROOT/%{pfx}
+        find . \( -name CVS -o -name .svn -o -name .git \) -prune -o -perm -444 ! 
-type b ! -type c -print0 2>/dev/null |  cpio -p0d  --quiet 
$RPM_BUILD_ROOT/%{pfx}
         cd -
     fi
 done



--
Peter Barada <address@hidden <mailto:address@hidden>>
Logic Product Development, Inc.


------------------------------------------------------------------------

_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/ltib




reply via email to

[Prev in Thread] Current Thread [Next in Thread]