meson: be more accurate in comments when generating processed scripts

Instead of assuming all scripts are .sh.in and leaving a comment to that
effect, just take the input file directly.

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Eli Schwartz 2018-11-04 23:24:39 -05:00 committed by Allan McRae
parent fbc6d8b428
commit 363664e47d

View file

@ -25,7 +25,7 @@ mode=$3
-e "s|@SEDPATH[@]|@SEDPATH@|g" \ -e "s|@SEDPATH[@]|@SEDPATH@|g" \
-e "s|@DUFLAGS[@]|@DUFLAGS@|g" \ -e "s|@DUFLAGS[@]|@DUFLAGS@|g" \
-e "s|@DUPATH[@]|@DUPATH@|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" "$input" >"$output"
if [[ $mode ]]; then if [[ $mode ]]; then