[uClinux-dev] romfs-inst and subversion

vince vince at kyllikki.org
Thu Aug 4 09:49:43 EDT 2005


I am keeping one of our uCLinux trees in subversion instead of CVS,
the following patch excludes the .svn directories from being included
in the romfs.

Please feel free to include if this is considered more widely useful,
its one of those patches thats useful if you need it and might be
considered overhead if not ;-) enjoy


-- 
Regards Vincent

-------------- next part --------------
diff -urN uClinux-dist-20050614/tools/romfs-inst.sh uClinux-dist-20050614-2/tools/romfs-inst.sh
--- uClinux-dist-20050614/tools/romfs-inst.sh	2005-06-14 02:19:55.000000000 +0100
+++ uClinux-dist-20050614-2/tools/romfs-inst.sh	2005-08-04 14:45:00.126185817 +0100
@@ -31,7 +31,7 @@
 	use a single -e/-o with 1 or more y/n/"" chars in the condition.
 
 	if src is a directory,  everything in it is copied recursively to dst
-	with special files removed (currently CVS dirs).
+	with special files removed (currently CVS and Subversion dirs).
 !EOF
 	exit 1
 }
@@ -62,7 +62,7 @@
 			cd ${src} || return 1
 			V=
 			[ "$v" ] && V=v
-			find . -print | grep -E -v '/CVS' | cpio -p${V}dumL ${ROMFSDIR}${dst}
+			find . -print | grep -E -v '/CVS|/\.svn' | cpio -p${V}dumL ${ROMFSDIR}${dst}
 			rc=$?
 		)
 	else
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://mailman.uclinux.org/pipermail/uclinux-dev/attachments/20050804/34425692/attachment.sig>


More information about the uClinux-dev mailing list