mirror of
https://github.com/eth-p/bat-extras.git
synced 2024-11-08 00:34:22 +01:00
developer: Fix build.sh to inline EXECUTABLE_DELTA constant
This commit is contained in:
parent
29fb251348
commit
275c66b213
8
build.sh
8
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'
|
||||
|
Loading…
Reference in New Issue
Block a user