sed -i option is not posix, and argument syntax is incompatible between mac and linux...
authorN. Engelhardt <nak@symbioticeda.com>
Fri, 9 Oct 2020 09:41:18 +0000 (11:41 +0200)
committerN. Engelhardt <nak@symbioticeda.com>
Fri, 9 Oct 2020 10:04:19 +0000 (12:04 +0200)
Makefile

index 6bb0c97c7f1ff160e0e28cf84251d6ad4fb5ad97..3b58d87febb1dde560d09662a6a844cd8f03e36b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,7 @@ install:
        mkdir -p $(DESTDIR)$(PREFIX)/bin
        mkdir -p $(DESTDIR)$(PREFIX)/share/yosys/python3
        cp sbysrc/sby_*.py $(DESTDIR)$(PREFIX)/share/yosys/python3/
-       sed -e 's|##yosys-program-prefix##|"'$(PROGRAM_PREFIX)'"|' -i $(DESTDIR)$(PREFIX)/share/yosys/python3/sby_core.py
+       sed -e 's|##yosys-program-prefix##|"'$(PROGRAM_PREFIX)'"|' < sbysrc/sby_core.py > $(DESTDIR)$(PREFIX)/share/yosys/python3/sby_core.py
 ifeq ($(OS), Windows_NT)
        sed -e 's|##yosys-sys-path##|sys.path += [os.path.dirname(__file__) + p for p in ["/share/python3", "/../share/yosys/python3"]]|;' \
                -e "s|#!/usr/bin/env python3|#!$(PYTHON)|" < sbysrc/sby.py > $(DESTDIR)$(PREFIX)/bin/sby-script.py