[Lunar-commits] <moonbase> pcre: a better version of the build file.

Florin Braescu florin at lunar-linux.org
Sat Mar 3 19:57:49 CET 2012


commit 4d0b4b0130d54b65557a6164a87907136357f972
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Sat Mar 3 19:57:49 2012 +0100

    pcre: a better version of the build file.
---
 libs/pcre/BUILD        |   15 +++++++++------
 libs/pcre/POST_INSTALL |    4 ++--
 2 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/libs/pcre/BUILD b/libs/pcre/BUILD
index 9cd05e8..fa9d4c6 100644
--- a/libs/pcre/BUILD
+++ b/libs/pcre/BUILD
@@ -18,12 +18,15 @@
    sedit 's:$(libdir)/pkgconfig:/usr/lib/pkgconfig:' Makefile  &&
    sedit 's:ln -s:ln -sf:' Makefile  &&
 
-#  preserve the old version to prevent the crash of grep
-   make          &&
-   make install  &&
-#  rebuild the new grep image
-   lin grep      &&
-#  normal reinstall of pcre
+  if [ -f /lib/libpcre.so.0.0.1 ]; then
+#    preserve the old version to prevent the crash of grep
+     make          &&
+     make install  &&
+#    rebuild the new grep image
+     lin grep
+   fi  &&
+
+#  normal install of pcre
    default_make
 
 ) > $C_FIFO 2>&1
diff --git a/libs/pcre/POST_INSTALL b/libs/pcre/POST_INSTALL
index d063350..edb42d8 100644
--- a/libs/pcre/POST_INSTALL
+++ b/libs/pcre/POST_INSTALL
@@ -1,3 +1,3 @@
-rm -f /usr/lib/libpcre.so.0
-rm -f /usr/lib/libpcre.so.0.0.1
+rm -f /lib/libpcre.so.0
+rm -f /lib/libpcre.so.0.0.1
 


More information about the Lunar-commits mailing list