Commit ff489ff5 authored by Karl Wette's avatar Karl Wette
Browse files

Fix sed -i usage for GNU vs BSD portability

Original: 87a8c4e779cc448736f92ec24aeabb76577f1016
parent 296e05f1
......@@ -90,7 +90,9 @@ pybin-install-data-hook:
echo "Fixing shebangs commands in $(DESTDIR)$(pybindir)..."; \
for file in $(pybin_SCRIPTS); do \
printf " $${file}"; \
if $(SED) -i "s|^$${shebang}.*$$|$${shebang_command}|" "$(DESTDIR)$(pybindir)/$${file}"; then : ; else \
if $(SED) -i.tmp "s|^$${shebang}.*$$|$${shebang_command}|" $(DESTDIR)$(pybindir)/$${file}; then \
rm -f $(DESTDIR)$(pybindir)/$${file}.tmp; \
else \
printf "\n\nERROR: failed to fix shebang command of $(DESTDIR)$(pybindir)/$${file}\n\n" >&2; \
exit 1; \
fi; \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment