X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=parsers%2F60_macros.sh;h=7d5232d3bb7b96bda27925d921f76aa600aeb300;hb=19eaa527e1d445b30d7ba4d23430d22cd882d9c6;hp=60ac8f3d73e50d0e8fdb7eb5b80ef653174d573b;hpb=d1513c4d506a8628fb6037bc504960c6a4734f29;p=shellwiki diff --git a/parsers/60_macros.sh b/parsers/60_macros.sh index 60ac8f3..7d5232d 100755 --- a/parsers/60_macros.sh +++ b/parsers/60_macros.sh @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright 2023 Paul Hänsch +# Copyright 2023, 2024 Paul Hänsch # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above @@ -14,7 +14,9 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR # IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -if which awk >/dev/null; then +if [ ! "$MD_MACROS" ]; then + cat +elif which awk >/dev/null; then awk -f "$_EXEC/macros.awk" elif which busybox >/dev/null; then busybox awk -f "$_EXEC/macros.awk"