From 68d39207e6d0d5b866a351126d03f8dd61c811f2 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 22 Nov 2005 00:57:05 +0000 Subject: tweaked sed rules so that they would work with MinGW's very crippled sed. The PD_VERSION stuff is still in need of some serious tweaking svn path=/trunk/; revision=4014 --- packages/Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/Makefile b/packages/Makefile index 3cd3df05..806e5106 100644 --- a/packages/Makefile +++ b/packages/Makefile @@ -360,7 +360,9 @@ devsymlinks: patch_pd: @echo PD_SRC $(PD_SRC) # change Pd's version number to reflect the extended build - sed -i.bak 's/\(pd_version\[\] = "Pd version \)[0-9extndRC.-]*/\1$(PD_VERSION)-$(PACKAGE_VERSION)/' $(PD_SRC)/src/s_main.c + cd $(PD_SRC)/src/ && \ + sed 's/\(pd_version\[\] = "Pd version \)[0-9extndRC.-]*/\1$(PD_VERSION)-$(PACKAGE_VERSION)/' s_main.c > s_main.c.tmp && \ + mv s_main.c.tmp s_main.c # apply all platform-neutral patches for patch in $(wildcard $(CWD)/patches/*.patch); do \ echo "Applying $$patch"; \ @@ -377,10 +379,11 @@ patch_pd: unpatch_pd: -# this sed pattern won't work with TEST versions. - sed -i.bak \ - 's/\(pd_version\[\] = "Pd version [0-9]\.[0-9]*[.-][0-9]*\)[0-9extndRC.-]*/\1/' \ - $(PD_SRC)/src/s_main.c +# this sed pattern won't work with TEST versions + cd $(PD_SRC)/src && \ + sed 's/\(pd_version\[\] = "Pd version [0-9]\.[0-9]*[.-][0-9]*\)[0-9extndRC.-]*/\1/' \ + s_main.c > s_main.c.tmp && \ + mv s_main.c.tmp s_main.c # apply all platform-neutral patches for patch in $(wildcard $(CWD)/patches/*.patch); do \ echo "Applying $$patch"; \ -- cgit v1.2.1