[pacman-dev] [PATCH 2/5] meson: be more accurate in comments when generating processed scripts
Eli Schwartz
eschwartz at archlinux.org
Wed Nov 14 02:49:26 UTC 2018
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 at 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
More information about the pacman-dev
mailing list