| 1 |
#!/bin/sh |
| 2 |
# usage: test-distrib machine [ gcl.tgz-file ] |
| 3 |
# xbin/test-distrib 386-linux /d11/wfs/gcl.tgz >& |
| 4 |
# xbin/test-distrib solaris /dilbert1/wfs/gcl.tgz >& |
| 5 |
MACHINE=$1 |
| 6 |
|
| 7 |
if [ -d /d11/wfs/test-lisp ] ; then DIR=/d11/wfs ; |
| 8 |
else if [ -d ${HOME}/test-lisp ] ; then DIR=${HOME}; |
| 9 |
else echo cant find test-lisp ; exit 1; |
| 10 |
fi; fi |
| 11 |
TESTDIR=${DIR}/test-lisp |
| 12 |
if [ $# -eq 2 ] ;then FILE=$2 ; |
| 13 |
else |
| 14 |
FILE=${DIR}/gcl.tgz |
| 15 |
NAME="gcl-`cat majvers`.`cat minvers`" |
| 16 |
xbin/distribute ${FILE} |
| 17 |
fi |
| 18 |
rm -rf ${DIR}/gcl-test |
| 19 |
mkdir ${DIR}/gcl-test |
| 20 |
cd ${DIR}/gcl-test |
| 21 |
gzip -dc ${FILE} | tar xvf - |
| 22 |
NAME="gcl-`cat gcl-*/majvers`.`cat gcl-*/minvers`" |
| 23 |
cd ${NAME} |
| 24 |
add-defs ${MACHINE} |
| 25 |
make |
| 26 |
cd ${TESTDIR} |
| 27 |
make LISP=${DIR}/gcl-test/${NAME}/unixport/saved_gcl |