summaryrefslogtreecommitdiffstats
path: root/gawk.pkg/postinst
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-09-08 11:51:26 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-09-08 11:51:26 (EDT)
commit33d619a3a1f841158782a03fb78759aae1bec3ed (patch)
tree22efc03a1466afc05c3f3ac2c18623af5f0f2665 /gawk.pkg/postinst
parentb833998bf932d783e3fb078353129d25ea1ef323 (diff)
gawk: Make /usr/bin/awk with update-alternatives.
Diffstat (limited to 'gawk.pkg/postinst')
-rw-r--r--gawk.pkg/postinst5
1 files changed, 5 insertions, 0 deletions
diff --git a/gawk.pkg/postinst b/gawk.pkg/postinst
new file mode 100644
index 0000000..7e24c86
--- /dev/null
+++ b/gawk.pkg/postinst
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+if [ "x${1}" = 'xconfigure' ]; then
+ update-alternatives --install /usr/bin/awk awk /usr/bin/gawk 20
+fi