From dbd7b9a97eede27e707a279114305d7591d371fc Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 23 Nov 2003 18:29:08 +0000 Subject: various shell script fixes. add 9a, 9c, 9l wrapper scripts. label sets label on xterm/9term --- bin/9l | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 bin/9l (limited to 'bin/9l') diff --git a/bin/9l b/bin/9l new file mode 100755 index 00000000..2db7be54 --- /dev/null +++ b/bin/9l @@ -0,0 +1,26 @@ +#!/bin/sh + +ld=none +extralibs=-lm +tag="`uname`-`uname -m`-${CC:-cc}" +case "$tag" in +*FreeBSD*) ld=gcc ;; +*BSD*) ld=gcc ;; +*Linux*) ld=gcc ;; +*Darwin*) ld=gcc ;; +*SunOS*-cc) ld=cc; extralibs="$extralibs -lrt -lpthread" ;; +*SunOS*-gcc) ld=gcc ;; +*) + echo do not know how to link on "$tag" 1>&2 + exit 1 +esac + +case $ld in +gcc) + exec gcc \ + -ggdb \ + -L$PLAN9/lib \ + "$@" \ + $extralibs + ;; +esac -- cgit v1.2.3