Instead of assuming all scripts are .sh.in and leaving a comment to that effect, just take the input file directly. Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> --- build-aux/edit-script.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-aux/edit-script.sh.in b/build-aux/edit-script.sh.in index 3e3a1b6a..3b0058ce 100644 --- a/build-aux/edit-script.sh.in +++ b/build-aux/edit-script.sh.in @@ -25,7 +25,7 @@ mode=$3 -e "s|@SEDPATH[@]|@SEDPATH@|g" \ -e "s|@DUFLAGS[@]|@DUFLAGS@|g" \ -e "s|@DUPATH[@]|@DUPATH@|g" \ - -e "s|@configure_input[@]|Generated from ${output##*/}.sh.in; do not edit by hand.|g" \ + -e "s|@configure_input[@]|Generated from ${input##*/}; do not edit by hand.|g" \ "$input" >"$output" if [[ $mode ]]; then -- 2.19.1