File: configure

package info (click to toggle)
maxima 5.6-17
  • links: PTS
  • area: main
  • in suites: woody
  • size: 30,572 kB
  • ctags: 47,715
  • sloc: ansic: 154,079; lisp: 147,553; asm: 45,843; tcl: 16,744; sh: 11,057; makefile: 7,198; perl: 1,842; sed: 334; fortran: 24; awk: 5
file content (46 lines) | stat: -rwxr-xr-x 1,276 bytes parent folder | download
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/sh
# edit next few lines 
# GCLDIR should be where gcl was built, and the o/*.o lsp/*.o etc must be
# there to link with maxima
GCLDIR=/home/wfs/cvs/gcl
# the directory where this file is, and where you will build maxima
# could use
MAXDIR=/home/wfs/cvs/maxima
MAXDIR=`pwd`
# where to put some maxima .el files
EMACS_SITE_LISP=/usr/local/lib/emacs/site-lisp

# determines where to install
# PREFIX_DIR=/usr/local puts things in /usr/local/lib/maxima-x.y
# and /usr/local/bin
PREFIX_DIR=/usr/local
INFO_DIR=${PREFIX_DIR}/info
MAN_DIR=${PREFIX_DIR}/man/man1
##### end editing #########

if [ -f ${GCLDIR}/makedefs ] ;then 
cat ${GCLDIR}/makedefs > makedefs
else echo > makedefs
echo '${GCLDIR}/makedefs' "(${GCLDIR}/makedefs)" not found.. so leaving blank..

fi

echo GCLDIR=${GCLDIR} >>makedefs
echo MAXDIR=${MAXDIR} >>makedefs
echo PREFIX_DIR=${PREFIX_DIR} >>makedefs
echo EMACS_SITE_LISP=${EMACS_SITE_LISP} >> makedefs
echo INFO_DIR=${INFO_DIR} >> makedefs
echo MAN_DIR=${MAN_DIR} >> makedefs
echo '# end maxmakedefs' >> makedefs

(cd ${GCLDIR}/bin ; make )

echo inserting makedefs  in ..
for v in makefile src/makefile info/makefile elisp/makefile 
 do
 echo " $v,"
 ${GCLDIR}/bin/file-sub makedefs $v "# begin makedefs" '# end maxmakedefs' tmpx
 mv tmpx $v
 done