From aef095e234fac2b441e891a90abc73cce892bb0d Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 21 Jun 2012 02:15:11 -0400 Subject: Add maintainer scripts to provide cc alternative. --- diff --git a/gcc.pkg/postinst b/gcc.pkg/postinst new file mode 100755 index 0000000..9fd34c0 --- /dev/null +++ b/gcc.pkg/postinst @@ -0,0 +1,5 @@ +#! /bin/sh + +if [ "${1}" = configure ]; then + update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 20 +fi diff --git a/gcc.pkg/prerm b/gcc.pkg/prerm new file mode 100755 index 0000000..5d0150b --- /dev/null +++ b/gcc.pkg/prerm @@ -0,0 +1,5 @@ +#! /bin/sh + +if [ "${1}" = remove ]; then + update-alternatives --remove cc /usr/bin/gcc +fi -- cgit v0.9.1