[packages/adapter: 590/631] leave alone with -DSOMETHING=/path/to/bin

glen glen at pld-linux.org
Mon Sep 12 20:23:53 CEST 2016


commit c5034ee6f553590f3e16121fb1a3913e9d25c999
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu May 8 12:18:59 2014 +0300

    leave alone with -DSOMETHING=/path/to/bin

 adapter.awk | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index d10b4ba..525fb0c 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -1087,6 +1087,11 @@ function use_macros()
 		return;
 	}
 
+	# leave alone with -DSOMETHING=/path/to/bin
+	if (/-D.+=.+/) {
+		return
+	}
+
 	sub("%{_defaultdocdir}", "%{_docdir}");
 	sub("%{_datadir}/doc", "%{_docdir}");
 	sub("%{_bindir}/perl", "%{__perl}");
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885



More information about the pld-cvs-commit mailing list