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:
parent
fbc6d8b428
commit
363664e47d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue