From 74c48a881df378a83e261c2785012609d81d801e Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 27 Sep 2023 21:46:20 +0100 Subject: move build/command/options to include/option.sh Signed-off-by: Leah Rowe --- script/build/command/options | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100755 script/build/command/options (limited to 'script/build/command/options') diff --git a/script/build/command/options b/script/build/command/options deleted file mode 100755 index e25daeea..00000000 --- a/script/build/command/options +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env sh -# SPDX-License-Identifier: MIT -# SPDX-FileCopyrightText: 2023 Leah Rowe - -. "include/err.sh" - -items=1 - -main() -{ - [ $# -gt 0 ] || \ - err "No argument given" - listitems "${1}" || err "No items present under: ${1}" -} - -listitems() -{ - [ -d "${1}" ] || \ - err "Directory not does exist: ${1}" - for x in "${1}/"*; do - # -e used because this is for files *or* directories - [ -e "${x}" ] || continue - [ "${x##*/}" = "build.list" ] && continue - printf "%s\n" "${x##*/}" 2>/dev/null - items=0 - done - return ${items} -} - -main $@ -- cgit v1.2.1