packages: builder - try to add logfile to .cvsignore

glen glen at pld-linux.org
Thu Aug 19 14:57:48 CEST 2010


Author: glen                         Date: Thu Aug 19 12:57:48 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- try to add logfile to .cvsignore

---- Files affected:
packages:
   builder (1.623 -> 1.624) 

---- Diffs:

================================================================
Index: packages/builder
diff -u packages/builder:1.623 packages/builder:1.624
--- packages/builder:1.623	Tue Aug  3 12:13:33 2010
+++ packages/builder	Thu Aug 19 14:57:42 2010
@@ -738,6 +738,15 @@
 			rm "$ASSUMED_NAME/CVS/Entries.Static"
 			cvsignore_df .cvsignore
 
+			# add default log format to .cvsignore if it is relative
+			if [ "$LOGFILE" == $(basename "$LOGFILE") ]; then
+				# substitute known "macros" to glob
+				local logfile=$(echo "$LOGFILE" | sed -e 's,\$\(PACKAGE_NAME\|DATE\),*,g')
+				if [ "$logfile" ]; then
+					cvsignore_df "$logfile"
+				fi
+			fi
+
 			# create symlinks for tools
 			if [ "$SYMLINK_TOOLS" != "no" ]; then
 				for a in dropin md5 adapter builder {relup,compile,repackage,rsync,pearize}.sh pldnotify.awk; do
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/builder?r1=1.623&r2=1.624&f=u



More information about the pld-cvs-commit mailing list