Add in support so that build will at least guess which template file

should be used :)
This commit is contained in:
Marc G. Fournier 1997-04-06 04:43:28 +00:00
parent 23733026ee
commit 063190a5fa
2 changed files with 12 additions and 0 deletions

View File

@ -15,6 +15,16 @@ fi
ls template
TEMPLATE=generic
#
# Use the file template/.similar to find an appropriate file
# We get the architecture from the config.guess script.
#
CONFIG=`./config.guess`
GUESS=`grep $CONFIG template/.similar 2>/dev/null`
if [ $GUESS ]; then
TEMPLATE=`echo $GUESS | sed 's/.*=//'`
fi
$ECHO_N "Appropriate template file [$TEMPLATE]: $ECHO_C"
read a
if [ "$a." = " ." ]

2
src/template/.similar Normal file
View File

@ -0,0 +1,2 @@
sparc-sun-solaris2.5=sparc_solaris-gcc
i386-unknown-freebsd3.0=freebsd