X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=parsers%2F60_macros.sh;h=7d5232d3bb7b96bda27925d921f76aa600aeb300;hb=2d69d91ccf6218c1c80fe3ee02a87b601e945282;hp=60ac8f3d73e50d0e8fdb7eb5b80ef653174d573b;hpb=b9d413c8014dd86a056b3f8fe80f8d1e39abb9c7;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"