]> git.pld-linux.org Git - packages/rpm-pld-macros.git/commitdiff
- spacing cleanup
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 21 Nov 2020 16:28:36 +0000 (17:28 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 21 Nov 2020 16:28:36 +0000 (17:28 +0100)
gem_helper.rb
rpm-find-spec-bcond

index 6457a7a4b4b33f014f39eb24e1be6d15440c6e36..3a82737be6709e0e29e647eb87bce0b095428e66 100755 (executable)
@@ -60,7 +60,7 @@ if ARGV[0] == "build" or ARGV[0] == "install" or ARGV[0] == "spec"
     opts.on("--fix-permissions", "Force standard permissions for files installed") do
       ARGV.delete("--fix-permissions")
       fixperms = true
-    end    
+    end
     opts.on("-i", "--install-dir GEMDIR", "Gem repository directory") do |val|
       gemdir = val
     end
index a11dece4e0186148483f6a7ddc20e6c4fcf9b45c..21fdd63abc06be86393926fe9e91fb404d21d27e 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Display bcond (_with_*, _without_*) macros from given spec 
+# Display bcond (_with_*, _without_*) macros from given spec
 # $Id$
 
 if [ "$#" = 0 ]; then
@@ -25,8 +25,8 @@ bconds=`awk -F"\n" 'BEGIN { chlog=0 }
                /^%changelog/ { chlog=1 }
                /_with(out)?_[_a-zA-Z0-9]+/ && chlog == 0 {
                        match($0, /_with(out)?_[_a-zA-Z0-9]+/);
-                       print substr($0, RSTART, RLENGTH)                       
-               }
+                       print substr($0, RSTART, RLENGTH)
+               }
                /^%bcond_with/ && chlog == 0 {
                        match($0, /bcond_with(out)?[ \t]+[_a-zA-Z0-9]+/);
                                 bcond = substr($0, RSTART +5 , RLENGTH -5);
@@ -39,7 +39,7 @@ for c in $bconds; do
 
     if ! echo `rpm --eval "%$c"` | grep $c >/dev/null; then
        echo " (on)"
-    else 
+    else
        echo ""
     fi
 done
@@ -47,18 +47,18 @@ done
 
 for bcond in $bconds; do
     isset=`awk -F"\n" "BEGIN { val=0 }
-                   /^%define[\t ]+$bcond/ {
-                     if (match(\\$0, /$bcond[\t ]+0[\t ]*$/)) {
-                        val = 0
-                     } else if (match(\\$0, /$bcond[\t ]+1[\t ]*$/)) {
-                        val = 1
-                     } else {
-                        print \"couldn't determine $bcond value from \", \\$0
-                     }
-                  } END { print val }" $SPEC`;
+               /^%define[\t ]+$bcond/ {
+                       if (match(\\$0, /$bcond[\t ]+0[\t ]*$/)) {
+                               val = 0
+                       } else if (match(\\$0, /$bcond[\t ]+1[\t ]*$/)) {
+                               val = 1
+                       } else {
+                               print \"couldn't determine $bcond value from \", \\$0
+                       }
+               }
+               END { print val }" $SPEC`;
 
     if [ x"$isset" = x"1" ]; then
        echo "WARN: $bcond defined in spec";
     fi
 done
-        
This page took 0.706654 seconds and 4 git commands to generate.