From 7d2fc2902f26f9f38072e3faeda20621ed559707 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 02 Jun 2013 12:20:16 -0400 Subject: gcc: Make c89.gcc and c99.gcc scripts executable. --- diff --git a/gcc.pkg.in/postinst b/gcc.pkg.in/postinst index ae943bc..0aa4796 100755 --- a/gcc.pkg.in/postinst +++ b/gcc.pkg.in/postinst @@ -5,6 +5,8 @@ if [ "x${1}" = 'xconfigure' ]; then ln -sf @PKG_TARGET_ARCH@-gcc /usr/bin/gcc printf '#!/bin/sh\nexec gcc -std=c89 "${@}"\n' >/usr/bin/c89.gcc printf '#!/bin/sh\nexec gcc -std=c99 "${@}"\n' >/usr/bin/c99.gcc + chmod a+x /usr/bin/c89.gcc + chmod a+x /usr/bin/c99.gcc update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 20 update-alternatives --install /usr/bin/c89 c89 \ /usr/bin/c89.gcc 20 -- cgit v0.9.1