mirror of
https://github.com/postgres/postgres.git
synced 2025-05-02 11:44:50 +03:00
Add in support so that build will at least guess which template file
should be used :)
This commit is contained in:
parent
23733026ee
commit
063190a5fa
10
src/build
10
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." = " ." ]
|
||||
|
2
src/template/.similar
Normal file
2
src/template/.similar
Normal file
@ -0,0 +1,2 @@
|
||||
sparc-sun-solaris2.5=sparc_solaris-gcc
|
||||
i386-unknown-freebsd3.0=freebsd
|
Loading…
x
Reference in New Issue
Block a user