[Lunar-commits] <moonbase> gawk: add a POST_INSTALL file in order to restore /bin/gawk if it's missing.
Florin Braescu
florin at lunar-linux.org
Sat Jul 25 08:40:59 CEST 2009
commit 44aeb00fbab33ce9e78102ef02c939f1da75bb08
Author: Florin Braescu <florin at lunar-linux.org>
Date: Sat Jul 25 09:40:59 2009 +0300
gawk: add a POST_INSTALL file in order to restore /bin/gawk if it's missing.
---
editors/gawk/BUILD | 5 +++--
editors/gawk/POST_INSTALL | 4 ++++
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/editors/gawk/BUILD b/editors/gawk/BUILD
index d609008..5cfa408 100644
--- a/editors/gawk/BUILD
+++ b/editors/gawk/BUILD
@@ -7,8 +7,9 @@
--bindir=/bin \
ac_cv_func_working_mktime=yes &&
- default_make &&
- rm -f /bin/awk &&
+ default_make &&
+ cp -f /bin/gawk /bin/gawk.old &&
+ rm -f /bin/awk &&
ln -sf gawk /bin/awk &&
if [ -e /bin/gawk-* ]; then
rm /bin/gawk-*;
diff --git a/editors/gawk/POST_INSTALL b/editors/gawk/POST_INSTALL
new file mode 100644
index 0000000..e5c6659
--- /dev/null
+++ b/editors/gawk/POST_INSTALL
@@ -0,0 +1,4 @@
+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