[Lunar-commits] <moonbase> gawk: finally fix the install.

Florin Braescu florin at lunar-linux.org
Sat Jul 25 10:13:03 CEST 2009


commit 2a8d4fd5370d7475abb560ec0ec95e1a3b8b906d
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Sat Jul 25 11:13:03 2009 +0300

    gawk: finally fix the install.
---
 editors/gawk/BUILD        |   10 +++++++---
 editors/gawk/POST_INSTALL |    4 ----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/editors/gawk/BUILD b/editors/gawk/BUILD
index 1f51bd1..146b4df 100644
--- a/editors/gawk/BUILD
+++ b/editors/gawk/BUILD
@@ -1,6 +1,9 @@
 (
 
   cp  -f /bin/gawk /bin/gawk.old  &&
+  prepare_install                 &&
+  mv /bin/gawk.old /bin/gawk      &&
+  ln  -sf  /bin/gawk  /bin/awk    &&
 
   ./configure  --build=$BUILD             \
                --prefix=/usr              \
@@ -9,9 +12,10 @@
                --bindir=/bin              \
 	       ac_cv_func_working_mktime=yes  &&
 
-  default_make  &&
-  rm  -f /bin/awk  &&
-  ln  -sf  gawk  /bin/awk  &&
+  make          &&
+  make install  &&
+
+  ln  -sf  /bin/gawk  /bin/awk  &&
   if [ -e /bin/gawk-*  ]; then
     rm /bin/gawk-*;
   fi  &&
diff --git a/editors/gawk/POST_INSTALL b/editors/gawk/POST_INSTALL
deleted file mode 100644
index e5c6659..0000000
--- a/editors/gawk/POST_INSTALL
+++ /dev/null
@@ -1,4 +0,0 @@
-if [ -e /bin/gawk ]; then
-  mv /bin/gawk.old /bin/gawk
-fi
-  
\ No newline at end of file


More information about the Lunar-commits mailing list