]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - tools/meson-check-api-docs.sh
scripts: use 4 space indentation
[thirdparty/systemd.git] / tools / meson-check-api-docs.sh
index a654368f9e497839082ed103074c322e689107c4..bd320562adc82c1c18d30ea45476c8a16f634bff 100755 (executable)
@@ -1,5 +1,4 @@
 #!/bin/sh
-
 set -eu
 
 sd_good=0
@@ -8,27 +7,27 @@ udev_good=0
 udev_total=0
 
 for symbol in `nm -g --defined-only "$@" | grep " T " | cut -d" " -f3 | sort -u` ; do
-        if test -f ${MESON_BUILD_ROOT}/man/$symbol.3 ; then
-                echo "✓ Symbol $symbol() is documented."
-                good=1
-        else
-                printf "  \x1b[1;31mSymbol $symbol() lacks documentation.\x1b[0m\n"
-                good=0
-        fi
+    if test -f ${MESON_BUILD_ROOT}/man/$symbol.3 ; then
+        echo "✓ Symbol $symbol() is documented."
+        good=1
+    else
+        printf "  \x1b[1;31mSymbol $symbol() lacks documentation.\x1b[0m\n"
+        good=0
+    fi
 
-        case $symbol in
-                sd_*)
-                        ((sd_good+=good))
-                        ((sd_total+=1))
-                        ;;
-                udev_*)
-                        ((udev_good+=good))
-                        ((udev_total+=1))
-                        ;;
-                *)
-                        echo 'unknown symbol prefix'
-                        exit 1
-        esac
+    case $symbol in
+        sd_*)
+            ((sd_good+=good))
+            ((sd_total+=1))
+            ;;
+        udev_*)
+            ((udev_good+=good))
+            ((udev_total+=1))
+            ;;
+        *)
+            echo 'unknown symbol prefix'
+            exit 1
+    esac
 done
 
 echo "libsystemd: $sd_good/$sd_total libudev: $udev_good/$udev_total"