Makefile: Change sed regex to be compatible with FreeBSD's odd sed, and change /...
authorMatthew Wild <mwild1@gmail.com>
Sun, 30 Mar 2014 08:16:27 +0000 (09:16 +0100)
committerMatthew Wild <mwild1@gmail.com>
Sun, 30 Mar 2014 08:16:27 +0000 (09:16 +0100)
Makefile

index c5390599064405960c303b55f095f2c51fa02b41..a1de1b6d7e49b63fc2c6e9541bb2ae7b1d0e9daa 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -55,7 +55,7 @@ util/%.so:
        $(MAKE) install -C util-src
 
 %.install: %
-       sed "1s/\blua\b/$(RUNWITH)/; \
+       sed "1s| lua$$| $(RUNWITH)|; \
                s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \
                s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|; \
                s|^CFG_DATADIR=.*;$$|CFG_DATADIR='$(INSTALLEDDATA)';|; \