From 33d619a3a1f841158782a03fb78759aae1bec3ed Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 08 Sep 2013 11:51:26 -0400 Subject: gawk: Make /usr/bin/awk with update-alternatives. --- 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 diff --git a/gawk.pkg/prerm b/gawk.pkg/prerm new file mode 100644 index 0000000..0a76458 --- /dev/null +++ b/gawk.pkg/prerm @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ "x${1}" = 'xremove' ]; then + update-alternatives --remove awk /usr/bin/gawk +fi -- cgit v0.9.1