]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
version 0.18
authorkura <kura@pld-linux.org>
Tue, 4 Apr 2000 19:04:53 +0000 (19:04 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- fixed regexp (do not use_macros() in scripts and changelog)

Changed files:
    adapter.awk -> 1.37

adapter.awk

index 54a2a3c2e915f54c5f94f2f3365d8748060d37da..46c31ff32d2dbc54d214ae0f75c066eae346e4d8 100644 (file)
@@ -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@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
This page took 0.04184 seconds and 4 git commands to generate.