[packages/adapter: 100/631] - added support for moving "-l <lang>" option of %description to the end of line

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


commit ddb18dd43832300828187b658f41aa23b147070b
Author: ankry <ankry at pld-linux.org>
Date:   Tue Feb 12 01:54:23 2002 +0000

    - added support for moving "-l <lang>" option of %description to the end of
      line
    
    Changed files:
        adapter.awk -> 1.100

 adapter.awk | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index 18173eb..b493e8f 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -126,6 +126,12 @@ defattr == 1 {
 	}
  
 	if (/^%[a-z]+/ && (!/^%description/ || bod == 2)) {
+		if (NF > 3 && $2 == "-l") {
+			ll = $1
+			for (i = 4; i <= NF; i++)
+				ll = ll " " $i
+			$0 = ll " -l " $3
+		}
 		format_flush(format_line, format_indent)
 		if (bod == 2) {
 			bod = 1
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list