Lines 45-51
Link Here
|
45 |
# CAVEAT: tr on Solaris is a bit weird and the extra [] is otherwise harmless. |
45 |
# CAVEAT: tr on Solaris is a bit weird and the extra [] is otherwise harmless. |
46 |
host=`echo $HOST | sed -e 's/^\([^-]*\)-\([^-]*\)-\([^-]*\)-\([^-]*\)$/\1-\3/' -e 's/^\([^-]*\)-\([^-]*\)$/\1--\2/' | tr '[A-Z]' '[a-z]'` |
46 |
host=`echo $HOST | sed -e 's/^\([^-]*\)-\([^-]*\)-\([^-]*\)-\([^-]*\)$/\1-\3/' -e 's/^\([^-]*\)-\([^-]*\)$/\1--\2/' | tr '[A-Z]' '[a-z]'` |
47 |
cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
47 |
cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
48 |
sys=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
48 |
sys=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\([a-z]*\).*$/\3/'` |
49 |
echo " $host $rel $cpu $sys" |
49 |
echo " $host $rel $cpu $sys" |
50 |
|
50 |
|
51 |
c=config.h |
51 |
c=config.h |