Skip to content

Commit f2a6a1e

Browse files
committed
Merge branch 'jc/sed-build-fixes'
Build fix. * jc/sed-build-fixes: build: sed portability fixes
2 parents b2bfd31 + 5acfacc commit f2a6a1e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

GIT-VERSION-GEN

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ read GIT_MAJOR_VERSION GIT_MINOR_VERSION GIT_MICRO_VERSION GIT_PATCH_LEVEL trail
8282
$(echo "$GIT_VERSION" 0 0 0 0 | tr '.a-zA-Z-' ' ')
8383
EOF
8484

85-
REPLACED=$(printf "%s" "$INPUT" | sed -e "s|@GIT_VERSION@|$GIT_VERSION|" \
85+
REPLACED=$(printf "%s\n" "$INPUT" | sed -e "s|@GIT_VERSION@|$GIT_VERSION|" \
8686
-e "s|@GIT_MAJOR_VERSION@|$GIT_MAJOR_VERSION|" \
8787
-e "s|@GIT_MINOR_VERSION@|$GIT_MINOR_VERSION|" \
8888
-e "s|@GIT_MICRO_VERSION@|$GIT_MICRO_VERSION|" \

generate-configlist.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ print_config_list () {
1313
cat <<EOF
1414
static const char *config_name_list[] = {
1515
EOF
16-
sed -E '
17-
/^`?[a-zA-Z].*\..*`?::$/ {
16+
sed -e '
17+
/^`*[a-zA-Z].*\..*`*::$/ {
1818
/deprecated/d;
1919
s/::$//;
2020
s/`//g;
2121
s/^.*$/ "&",/;
2222
p;};
23-
d' \
23+
d' \
2424
"$SOURCE_DIR"/Documentation/*config.adoc \
25-
"$SOURCE_DIR"/Documentation/config/*.adoc|
25+
"$SOURCE_DIR"/Documentation/config/*.adoc |
2626
sort
2727
cat <<EOF
2828
NULL,

0 commit comments

Comments
 (0)