From e8c85262fd5ba22df382e95a369bc87342617174 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 18 May 2013 12:33:41 -0400 Subject: build: Make target-specific links. --- diff --git a/build b/build index 934a642..f7aa255 100755 --- a/build +++ b/build @@ -6,5 +6,8 @@ install: mkdir -p dest/usr/bin cp src/c89/c89.sh dest/usr/bin/c89 cp src/c99/c99.sh dest/usr/bin/c99 - ln -s gcc-4.7 dest/usr/bin/gcc + set -e; for target in $$(cat ../targets); do \ + ln -s "$${target}-gcc-4.7" "dest/usr/bin/$${target}-gcc"; \ + ln -s "$${target}-g++-4.7" "dest/usr/bin/$${target}-g++"; \ + done oh-installfiles -- cgit v0.9.1