Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 0a6e57e6ea
Fetching contributors…

Cannot retrieve contributors at this time

executable file 34 lines (29 sloc) 0.579 kB
#!/bin/sh
#
# check if base directory was specified
#
BASE_DIR="."
echo "$1" | grep '^@' 2>&1 >/dev/null
if [ $? -eq 0 ]
then
BASE_DIR=`echo $1 | sed 's/^@//g'`
shift
fi
if [ -f "${BASE_DIR}/conf-x-cctype" ]
then
CC_TYPE=`head -n 1 "${BASE_DIR}/conf-x-cctype"`
if [ $? -ne 0 ]
then
echo "fatal: could not read ${BASE_DIR}/conf-x-cctype" 1>&2
exit 1
fi
else
CC_TYPE=`head -n 1 "${BASE_DIR}/conf-cctype"`
if [ $? -ne 0 ]
then
echo "fatal: could not read ${BASE_DIR}/conf-cctype" 1>&2
exit 1
fi
fi
LD_TYPE="${CC_TYPE}"
exec echo "${LD_TYPE}"
Jump to Line
Something went wrong with that request. Please try again.