New commits:
commit 589ef6590069a3b09d9f790a28f2dffb8ce89b97
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
*awk: Let the user choose the primary AWK implementation
diff --git a/devel/mawk/CONFIGURE b/devel/mawk/CONFIGURE
new file mode 100755
index 0000000..31cf3fe
--- /dev/null
+++ b/devel/mawk/CONFIGURE
@@ -0,0 +1 @@
+config_query MAWK_DEF "Use $SPELL as the primary AWK interpreter on the
system?" y
diff --git a/devel/mawk/HISTORY b/devel/mawk/HISTORY
index fb4646b..07eb853 100644
--- a/devel/mawk/HISTORY
+++ b/devel/mawk/HISTORY
@@ -1,5 +1,6 @@
2014-09-09 Ismael Luceno <ismael AT sourcemage.org>
* PROVIDES: Provide AWK
+ * CONFIGURE, INSTALL: Let the user choose the primary AWK
implementation
2014-08-31 Ismael Luceno <ismael AT sourcemage.org>
* BUILD, DETAILS: spell created
diff --git a/devel/mawk/INSTALL b/devel/mawk/INSTALL
new file mode 100755
index 0000000..a8cc99c
--- /dev/null
+++ b/devel/mawk/INSTALL
@@ -0,0 +1,4 @@
+default_install &&
+if [ "$MAWK_DEF" = y ]; then
+ ln -sf "$SPELL" "$INSTALL_ROOT"/bin/awk
+fi
diff --git a/editors/gawk/CONFIGURE b/editors/gawk/CONFIGURE
new file mode 100755
index 0000000..af13ca0
--- /dev/null
+++ b/editors/gawk/CONFIGURE
@@ -0,0 +1 @@
+config_query GAWK_DEF "Use $SPELL as the primary AWK interpreter on the
system?" y
diff --git a/editors/gawk/HISTORY b/editors/gawk/HISTORY
index d56faba..2e1a832 100644
--- a/editors/gawk/HISTORY
+++ b/editors/gawk/HISTORY
@@ -1,5 +1,6 @@
2014-09-09 Ismael Luceno <ismael AT sourcemage.org>
* PROVIDES: Provide AWK
+ * CONFIGURE, INSTALL: Let the user choose the primary AWK
implementation
2014-08-24 Thomas Orgis <sobukus AT sourcemage.org>
* BUILD: reduce usage of libraries to prevent failure of spell
diff --git a/editors/gawk/INSTALL b/editors/gawk/INSTALL
index ddfa021..8d4d071 100755
--- a/editors/gawk/INSTALL
+++ b/editors/gawk/INSTALL
@@ -1,3 +1,4 @@
make DESTDIR=$INSTALL_ROOT install &&
-rm -f ${INSTALL_ROOT}/bin/awk &&
-ln -sf gawk ${INSTALL_ROOT}/bin/awk
+if [ "$GAWK_DEF" = y ]; then
+ ln -sf "$SPELL" "$INSTALL_ROOT"/bin/awk
+fi
[SM-Commit] GIT changes to master grimoire by Ismael Luceno (589ef6590069a3b09d9f790a28f2dffb8ce89b97),
Ismael Luceno, 09/09/2014