[packages/adapter: 101/631] - fixed _mandir makro misuse - typo

glen glen at pld-linux.org
Mon Sep 12 19:42:56 CEST 2016


commit 5e1d0492b443e9f6e9d12e18e9c0cb167422b8df
Author: ankry <ankry at pld-linux.org>
Date:   Sun Feb 17 18:49:20 2002 +0000

    - fixed _mandir makro misuse
    - typo
    
    Changed files:
        adapter.awk -> 1.101

 adapter.awk | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index b493e8f..5a0c6d3 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -559,7 +559,7 @@ function use_macros()
 
 	gsub("%{prefix}/sbin", "%{_sbindir}")
 	if(prefix"/sbin" == sbindir)
-		gsub("%{_prefix}/sbib", "%{_sbindir}")
+		gsub("%{_prefix}/sbin", "%{_sbindir}")
 
 	gsub(libdir, "%{_libdir}")
 	gsub("%{prefix}/lib", "%{_libdir}")
@@ -599,7 +599,8 @@ function use_macros()
 		gsub("%{_prefix}/include", "%{_includedir}")
 
 	gsub(mandir, "%{_mandir}")
-	gsub("%{_datadir}/man", "%{_mandir}")
+	if ($0 !~ "%{_datadir}/manual")
+		gsub("%{_datadir}/man", "%{_mandir}")
 	gsub("%{_prefix}/share/man", "%{_mandir}")
 	gsub("%{prefix}/share/man", "%{_mandir}")
 	gsub("%{prefix}/man", "%{_mandir}")
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list