Merge branch 'rtoy-html-support-external-docs'
[maxima.git] / archive / bin / kcl-link
blobe7c65c2f4cf8fb75d735c57c46db09d466c7c6de
1 #!/bin/sh
2 # provide some links back to the akcl directory. If symbolic
3 # links exist then just make one link, otherwise link them all..
5 MAXDIR=$1
6 KCLDIR=$2
7 SYMB=$3
8 if [ ! -f ${MAXDIR}/src/rat3a.lisp ] ;
9 then echo bad maxdir = ${MAXDIR} ;exit 1 ;
11 if [ ! -f ${KCLDIR}/c/array.c ] ;
12 then echo bad KCLDIR = ${KCLDIR} ;exit 1 ;
16 rm -f ${MAXDIR}/unixport/rsym
17 ln ${SYMB} ${KCLDIR}/unixport/rsym ${MAXDIR}/unixport/rsym
19 if [ "" != "${SYMB}" ] ; then rm -r -f kcl
20 ln -s ${KCLDIR} ${MAXDIR}/kcl
21 exit 0
25 if [ ! -f ${MAXDIR}/kcl/o/array.o ] ;
26 then rm -f -r ${MAXDIR}/kcl ;
27 mkdir ${MAXDIR}/kcl;
28 for v in o lsp cmpnew ; do mkdir ${MAXDIR}/kcl/$v ;
29 (cd ${KCLDIR} ; ln ${SYMB} $v/*.o $v/*.a $v/*.lsp ${MAXDIR}/kcl/$v);
30 done
31 mkdir ${MAXDIR}/kcl/unixport ;
32 ln ${SYMB} ${KCLDIR}/unixport/init_kcl.lsp ${MAXDIR}/kcl/unixport