diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2005-11-22 00:57:05 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2005-11-22 00:57:05 +0000 |
commit | 68d39207e6d0d5b866a351126d03f8dd61c811f2 (patch) | |
tree | 512c41bc9d9883f116381374c153c06dfe203398 /packages/Makefile | |
parent | 255dc1dd879711ae9c3857b8927e2581589e9ca2 (diff) |
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
Diffstat (limited to 'packages/Makefile')
-rw-r--r-- | packages/Makefile | 13 |
1 files 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"; \ |