[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ltib] Patch merge.spec to prune VCS (not just CVS) files
From: |
Peter Barada |
Subject: |
[Ltib] Patch merge.spec to prune VCS (not just CVS) files |
Date: |
Fri, 18 Sep 2009 11:56:24 -0400 |
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
- [Ltib] Patch merge.spec to prune VCS (not just CVS) files,
Peter Barada <=