File: test-distrib

package info (click to toggle)
gcl 2.6.14-21
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 60,864 kB
  • sloc: ansic: 177,407; lisp: 151,509; asm: 128,169; sh: 22,510; cpp: 11,923; tcl: 3,181; perl: 2,930; makefile: 2,360; sed: 334; yacc: 226; lex: 95; awk: 30; fortran: 24; csh: 23
file content (27 lines) | stat: -rwxr-xr-x 720 bytes parent folder | download | duplicates (19)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
# usage: test-distrib machine [ gcl.tgz-file ]
# xbin/test-distrib 386-linux /d11/wfs/gcl.tgz >&
# xbin/test-distrib solaris /dilbert1/wfs/gcl.tgz >&
MACHINE=$1

if [ -d /d11/wfs/test-lisp ]  ; then DIR=/d11/wfs ;
else if [ -d ${HOME}/test-lisp ] ; then DIR=${HOME};
else echo cant find test-lisp ; exit 1;
fi; fi
TESTDIR=${DIR}/test-lisp
if [ $# -eq 2 ] ;then FILE=$2 ;
else 
FILE=${DIR}/gcl.tgz
NAME="gcl-`cat majvers`.`cat minvers`"
xbin/distribute ${FILE}
fi
rm -rf ${DIR}/gcl-test
mkdir ${DIR}/gcl-test
cd ${DIR}/gcl-test
gzip -dc ${FILE} | tar xvf -
NAME="gcl-`cat gcl-*/majvers`.`cat gcl-*/minvers`"
cd ${NAME}
add-defs ${MACHINE}
make
cd ${TESTDIR}
make LISP=${DIR}/gcl-test/${NAME}/unixport/saved_gcl