discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Distinguish between platforms with defs


From: Lars Sonchocky-Helldorf
Subject: Re: Distinguish between platforms with defs
Date: Mon, 31 Oct 2005 02:19:42 +0100


Am Sonntag, 30.10.05 um 23:25 Uhr schrieb Adam Fedor:

#!/bin/sh
for def in `gcc -E -v - </dev/null 2>&1 | grep [-]$`; do
  case $def in -D*) echo $def;; esac
done


if I leave out the '$' sign after 'grep [-]' this script works on Darwin too. On Darwin grep uses the '$' as a meta character that matches the line end.

regards, Lars





reply via email to

[Prev in Thread] Current Thread [Next in Thread]