From 275c66b2137dfaead4c21bb82b49e6ae4b7dd8a8 Mon Sep 17 00:00:00 2001 From: Ethan P Date: Thu, 30 Apr 2020 21:57:54 -0700 Subject: [PATCH] developer: Fix build.sh to inline EXECUTABLE_DELTA constant --- build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index 0c21701..e3ec7b4 100755 --- a/build.sh +++ b/build.sh @@ -274,14 +274,13 @@ pp_consolidate__do() { } # Inlines constants: -# EXECUTABLE_BAT -# EXECUTABLE_GIT +# EXECUTABLE_* # PROGRAM_* pp_inline_constants() { - local constants=("EXECUTABLE_BAT" "EXECUTABLE_GIT" "PROGRAM") + local constants=("PROGRAM") # Determine the PROGRAM_ constants. - local nf_constants="$( ( set -o posix ; set) | grep '^PROGRAM_' | cut -d'=' -f1)" + local nf_constants="$( ( set -o posix ; set) | grep '^\(PROGRAM_\|EXECUTABLE_\)' | cut -d'=' -f1)" local line while read -r line; do constants+=("$line") @@ -301,6 +300,7 @@ pp_inline_constants() { sed "${constants_pattern}" } + # Strips comments from a Bash source file. pp_strip_comments() { sed '/^[[:space:]]*#.*$/d'