[packages/adapter: 169/631] - replace %{_examplesdir} macro

glen glen at pld-linux.org
Mon Sep 12 19:48:37 CEST 2016


commit 2a638fcbdf5590e6b4f5eca9378dae1d286af2aa
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Sat Jul 16 15:19:38 2005 +0000

    - replace %{_examplesdir} macro
    
    Changed files:
        adapter.awk -> 1.163

 adapter.awk | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index aeae968..155f20b 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -49,6 +49,7 @@ BEGIN {
 	"rpm --eval %_includedir" | getline includedir
 	"rpm --eval %_mandir"	| getline mandir
 	"rpm --eval %_infodir"	| getline infodir
+	"rpm --eval %_examplesdir"	| getline examplesdir
 
 	"rpm --eval %perl_sitearch" | getline perl_sitearch
 	"rpm --eval %perl_archlib" | getline perl_archlib
@@ -671,6 +672,8 @@ function use_macros()
 		gsub("%{_datadir}/aclocal", "%{_aclocaldir}")
 	}
 
+	gsub(examplesdir, "%{_examplesdir}")
+
 	if (prefix != "/") {
 		for (c = 1; c <= NF; c++) {
 			if ($c ~ prefix "/sbin/fix-info-dir")
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list