[packages/rpm-build-tools] builder: replace more macros in logfile

glen glen at pld-linux.org
Thu Jun 19 10:31:43 CEST 2014


commit 3870f9792536a2c03232df6f4efbd3f83bea83cd
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Jun 19 11:31:24 2014 +0300

    builder: replace more macros in logfile

 builder.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/builder.sh b/builder.sh
index adfb344..a1937f7 100755
--- a/builder.sh
+++ b/builder.sh
@@ -958,7 +958,7 @@ get_spec() {
 		# add default log format to .gitignore if it is relative to package dir
 		if [ -n "$LOGFILE" -a "$LOGFILE" = "${LOGFILE##*/}" ]; then
 			# substitute known "macros" to glob
-			local logfile=$(echo "$LOGFILE" | sed -e 's,\$\(PACKAGE_NAME\|DATE\|TARGET\),*,g')
+			local logfile=$(echo "$LOGFILE" | sed -r -e 's,\$(PACKAGE_(NAME|VERSION|RELEASE)|DATE|TARGET),*,g')
 			if [ "$logfile" ]; then
 				cvsignore_df "$logfile"
 			fi
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/8a276141f0bafdce4954d36302ae207e66980fa9



More information about the pld-cvs-commit mailing list