Building GDC

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Fri Nov 1 09:00:25 PDT 2013


On 31/10/13 19:38, Steve Teale wrote:
> My recipe can be found at britseyeview.com/software/buildGDC.txt
>
> I hope this will save others some grief.

Nice writeup! :-)

One thing -- about tweaking the PATH variable -- I find it useful to have a 
little script for this, /etc/profile.d/opt.sh :

for d in /opt/*/bin; do
     test -d "$d" || continue
     case :$PATH:$ in
         *:"$d":*);;
         *) PATH=${PATH:+$PATH:}$d;;
     esac
done

Should be generally POSIX-compatible, not just working with bash or Linux.

N.B. I can't take credit for this.  I'd written a simpler version which didn't 
check if a directory was already in the PATH; some nice person on the Ubuntu 
Forums suggested the above as an alternative.


More information about the D.gnu mailing list