From 8ec896f23fbf3b01e88824f3283abfad122f1ba1 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Thu, 29 Dec 2011 18:41:16 +0000 Subject: [PATCH] build: remove #if directives from remez.cpp when distributing LolRemez. --- Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index e8f9c646..0eaa05f7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -28,9 +28,9 @@ lolremez-$(LOLREMEZ_VERSION).tar.gz: mkdir lolremez-$(LOLREMEZ_VERSION) mkdir lolremez-$(LOLREMEZ_VERSION)/lol mkdir lolremez-$(LOLREMEZ_VERSION)/lol/math - cp $(top_srcdir)/src/real.cpp $(top_srcdir)/test/math/remez.cpp \ - lolremez-$(LOLREMEZ_VERSION) - cat $(top_srcdir)/src/real.cpp | sed 's@core.h@lol/math/real.h@' > \ + cat $(top_srcdir)/test/math/remez.cpp | sed '/#if/,/^$$/d' > \ + lolremez-$(LOLREMEZ_VERSION)/remez.cpp + cat $(top_srcdir)/src/real.cpp | sed 's@core.h@lol/math/real.h@' | sed '/#if/,/^$$/d' > \ lolremez-$(LOLREMEZ_VERSION)/real.cpp cp $(top_srcdir)/src/lol/math/real.h \ $(top_srcdir)/src/lol/math/matrix.h \