[packages/adapter: 37/631] version 0.18 - fixed regexp (do not use_macros() in scripts and changelog)

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


commit 44cc26e19a8d06f83d33f682e532cea1fc5d06b3
Author: kura <kura at pld-linux.org>
Date:   Tue Apr 4 19:04:53 2000 +0000

    version 0.18
    - fixed regexp (do not use_macros() in scripts and changelog)
    
    Changed files:
        adapter.awk -> 1.37

 adapter.awk | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index 54a2a3c..46c31ff 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -1,6 +1,6 @@
 #!/bin/awk -f
 #
-# This is adapter v0.17. Adapter adapts .spec files for PLD.
+# This is adapter v0.18. Adapter adapts .spec files for PLD.
 # Copyright (C) 1999 Micha� Kuratczyk <kura at pld.org.pl>
 
 BEGIN {
@@ -125,7 +125,7 @@ defattr == 1 {
 }
 
 # %install section:
-/^%install/, (/^[a-z]+$/ && !/^%install/) {
+/^%install/, (/^%[a-z]+$/ && !/^%install/) {
 	preamble = 0
 	
 	use_macros()
@@ -157,6 +157,12 @@ defattr == 1 {
 	}
 }
 
+# Scripts
+/^%pre /, (/^[a-z]+$/ && !/^%pre /) { preamble = 0 }
+/^%preun/, (/^[a-z]+$/ && !/^%preun/) { preamble = 0 }
+/^%post /, (/^[a-z]+$/ && !/^%post /) {	preamble = 0 }
+/^%postun/, (/^[a-z]+$/ && !/^%postun/) { preamble = 0 }
+	
 # %files section:
 /^%files/, (/^%[a-z \-]+$/ && !/^%files/) {
 	preamble = 0
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list