template cleanup
This commit is contained in:
parent
4cbfeef912
commit
9260d4b440
File diff suppressed because it is too large
Load Diff
|
@ -79,12 +79,10 @@ AC_ARG_WITH(template,
|
||||||
see template directory],
|
see template directory],
|
||||||
[ TEMPLATE=$withval ],
|
[ TEMPLATE=$withval ],
|
||||||
[ host_no_ver=`echo "$host" | sed 's/[[0-9.]]*$//'`
|
[ host_no_ver=`echo "$host" | sed 's/[[0-9.]]*$//'`
|
||||||
GUESS=`grep "$host_no_ver" template/.similar | sed 's/.*=//' 2>/dev/null`
|
GUESS=`grep "$host_no_ver" template/.similar | sed 's/.*=//' | tail -1`
|
||||||
if test "$GUESS"
|
if test "$GUESS"
|
||||||
then
|
then TEMPLATE="$GUESS"
|
||||||
TEMPLATE=$GUESS
|
else TEMPLATE=`uname -s | tr A-Z a-z`
|
||||||
else
|
|
||||||
TEMPLATE=`uname -s | tr A-Z a-z`
|
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
AC_MSG_RESULT($TEMPLATE)
|
AC_MSG_RESULT($TEMPLATE)
|
||||||
|
|
Loading…
Reference in New Issue