summaryrefslogtreecommitdiff
path: root/src/cmd/INIT/cc.linux.i386-64-icc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/INIT/cc.linux.i386-64-icc')
-rwxr-xr-xsrc/cmd/INIT/cc.linux.i386-64-icc22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/cmd/INIT/cc.linux.i386-64-icc b/src/cmd/INIT/cc.linux.i386-64-icc
new file mode 100755
index 0000000..4d945bf
--- /dev/null
+++ b/src/cmd/INIT/cc.linux.i386-64-icc
@@ -0,0 +1,22 @@
+: linux.i386-64 icc wrapper : 2011-10-18 :
+
+HOSTTYPE=linux.i386-64-icc
+
+case " $* " in
+*" -dumpmachine "*) echo $HOSTTYPE; exit ;;
+esac
+
+icc=$(which icc 2>/dev/null)
+case $icc in
+"") if test -f /etc/profile.d/icc.sh
+ then . /etc/profile.d/icc.sh
+ fi
+ icc=$(which icc 2>/dev/null)
+ case $icc in
+ "") echo icc: not found >&2
+ exit 127
+ ;;
+ esac
+ ;;
+esac
+$icc "$@"