From 27b917d7c9dfb168260102858856a2673567d6f0 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 6 Jul 2025 16:54:27 +0200 Subject: [PATCH] =?UTF-8?q?=E2=88=92old?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sh/self.sh | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) diff --git a/sh/self.sh b/sh/self.sh index 4d88414..f4ecd69 100644 --- a/sh/self.sh +++ b/sh/self.sh @@ -43,54 +43,6 @@ rwx_doc() { --file "${RWX_AWK}" } -rwx_doc_old() { - local name="${1}" - [ -n "${name}" ] || return - local constant doc func line module - while IFS= read -r line; do - case "${line}" in - "#!"*) doc="" ;; - "#."*) - doc="" - module="$(echo "${line}" | sed "s|#\\. \\(.*\\)|\\1|")" - ;; - *"#"*) - [ -n "${doc}" ] && doc="${doc} -" - doc="${doc}$(echo "${line}" | sed "s|${RWX_REGEX_TARGET_DOC}|\\1|")" - ;; - *"="*) - constant="$(echo "${line}" | sed "s|${RWX_REGEX_TARGET_CONSTANT}|\\1|")" - if [ "${constant}" = "${name}" ]; then - echo "${doc}" - return - else - doc="" - fi - ;; - *"("*")"*"{"*) - func="$(echo "${line}" | sed "s|${RWX_REGEX_TARGET_FUNCTION}|\\1|")" - if [ "${func}" = "${name}" ]; then - echo "${doc}" - return - else - doc="" - fi - ;; - *) - if [ "${module}" = "${name}" ]; then - echo "${doc}" - return - else - doc="" - fi - ;; - esac - done <