[packages/adapter: 8/631] - fixed (I hope) problems with ^H

glen glen at pld-linux.org
Mon Sep 12 19:35:08 CEST 2016


commit 3df116990475edab9e573ec5353aad7fe81f7c21
Author: kura <kura at pld-linux.org>
Date:   Fri Dec 10 07:45:44 1999 +0000

    - fixed (I hope) problems with ^H
    
    Changed files:
        adapter.awk -> 1.8

 adapter.awk | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index 490f4cd..8e61dd5 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -1,6 +1,6 @@
 #!/bin/awk -f
 #
-# This is adapter v0.5. Adapter adapts .spec files for PLD.
+# This is adapter v0.6. Adapter adapts .spec files for PLD.
 # Copyright (C) 1999 Micha� Kuratczyk <kura at pld.org.pl>
 
 BEGIN {
@@ -54,10 +54,10 @@ bof == 1 {
 		
 	# no '-u root' or '-g root' for 'install'
 	if (/^install/ && /-[ug][ \t]*root/)
-		gsub(/-[ug][ \t]*root/, "\b");
+		gsub(/-[ug][ \t]*root /, "");
 	
 	if (/^install/ && /-m[ \t]*644/)
-		gsub(/-m[ \t]*644/, "\b");
+		gsub(/-m[ \t]*644 /, "");
 	
 	# no lines contain 'chown' or 'chgrp', which changes
 	# owner/group to 'root'
@@ -71,7 +71,7 @@ bof == 1 {
 	# 'gzip -9nf' for compressing
 	if ($1 ~ /gzip|bzip2/) {
 		if ($2 ~ /^-/)
-			sub($2, "\b");
+			sub(/-[A-Za-z0-9]+ /, "", $0);
 		sub($1, "gzip -9nf");
 	}
 }
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list