From 957f4181c070b0fbd978f0772b07c23b10a55df7 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Fri, 17 Feb 2012 14:43:50 +0000 Subject: [PATCH] /usr/lib/cpp script to invoke clang -E . mainly to keep X working --- commands/Makefile | 2 +- commands/cpp/Makefile | 5 +++++ commands/cpp/cpp.sh | 6 ++++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 commands/cpp/Makefile create mode 100644 commands/cpp/cpp.sh 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 -- 2.44.0