From: Ben Gras Date: Fri, 17 Feb 2012 14:43:50 +0000 (+0000) Subject: /usr/lib/cpp script to invoke clang -E X-Git-Tag: v3.2.0~17 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=957f4181c070b0fbd978f0772b07c23b10a55df7;p=minix.git /usr/lib/cpp script to invoke clang -E . mainly to keep X working --- diff --git a/commands/Makefile b/commands/Makefile index 2d8c6cc62..3d1d1d548 100644 --- a/commands/Makefile +++ b/commands/Makefile @@ -5,7 +5,7 @@ SUBDIR= add_route arp ash at awk \ backup badblocks banner basename \ btrace cal calendar \ - cat cawf cd cdprobe checkhier \ + cat cawf cd cdprobe checkhier cpp \ chmod chown chroot ci cksum cleantmp clear cmp co \ comm compress cp crc cron crontab cut \ dd decomp16 DESCRIBE dev2name devsize df dhcpd \ diff --git a/commands/cpp/Makefile b/commands/cpp/Makefile new file mode 100644 index 000000000..18917aebf --- /dev/null +++ b/commands/cpp/Makefile @@ -0,0 +1,5 @@ +SCRIPTS= cpp.sh +BINDIR= /usr/lib +MAN= + +.include diff --git a/commands/cpp/cpp.sh b/commands/cpp/cpp.sh new file mode 100644 index 000000000..a2ca6f99a --- /dev/null +++ b/commands/cpp/cpp.sh @@ -0,0 +1,6 @@ +exec 2>>/cpp.log +set -x +if [ $# -ne 1 ] +then exec /usr/pkg/bin/clang "$@" -E - +else exec /usr/pkg/bin/clang "$@" -E +fi