Skip to content

Commit

Permalink
Fix standalone script deploy, name transformation comes after argumen…
Browse files Browse the repository at this point in the history
…t processing
  • Loading branch information
alerque committed Dec 30, 2023
1 parent 8e88f7c commit 54e2265
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ AC_CONFIG_MACRO_DIR([build-aux])
AM_INIT_AUTOMAKE([foreign tar-pax dist-xz dist-zip no-dist-gzip color-tests])
AM_SILENT_RULES([yes])

AX_GIT_VERSION
AX_TRANSFORM_PACKAGE_NAME
AX_SHELL_COMPLETION_DIRS

AM_CONDITIONAL([IS_SDIST],
[test ! -e .gitignore])

Expand All @@ -22,13 +18,22 @@ AC_ARG_WITH([standalone],
with_bash_completion_dir=no
with_zsh_completion_dir=no
program_suffix=-standalone.sh
# By this point program_suffix has already been processed so we have to redo what configure did
# Code copied from approx L2670-2671
# By this point, ./configure has already handled its built in
# arguments and hence thinks program_suffix has made its way into
# program_transform_name. We're backtracking on it, so we have to
# do the work again manually.
# Code copied from generated ./configure at approx L2104 and 2108...
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
],
[])

# These three macros must be run after processing our standalone setup because
# they all expect the program name transformation setup to be complete.
AX_GIT_VERSION
AX_SHELL_COMPLETION_DIRS
AX_TRANSFORM_PACKAGE_NAME

AC_PROG_GREP
AC_PROG_SED

Expand Down

0 comments on commit 54e2265

Please sign in to comment.