aboutsummaryrefslogtreecommitdiff
path: root/src/build
diff options
context:
space:
mode:
Diffstat (limited to 'src/build')
-rw-r--r--src/build10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/build b/src/build
index e1b83df907b..4cce793f857 100644
--- a/src/build
+++ b/src/build
@@ -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." = " ." ]