summaryrefslogtreecommitdiffstats
path: root/gcc.pkg/postinst
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-06-21 02:15:11 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-06-21 02:15:11 (EDT)
commitaef095e234fac2b441e891a90abc73cce892bb0d (patch)
treed0afe7bb24501b415851f83f6b76ec33f64aa381 /gcc.pkg/postinst
parent9013caa232468f7a5feb5f77ebee6891fc17aed3 (diff)
Add maintainer scripts to provide cc alternative.
Diffstat (limited to 'gcc.pkg/postinst')
-rwxr-xr-xgcc.pkg/postinst5
1 files changed, 5 insertions, 0 deletions
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