root/trunk/build.sh

Revision 3, 1.5 kB (checked in by davison, 2 years ago)

standard svn dir structure

  • Property svn:executable set to
Line 
1 #!/bin/sh
2 # how to build from just the cvs sources
3 # takes us only to the distribution level.
4 # must still run a ./configure commmand (see examples after autoconf command)
5 ########################################
6 ########################################
7 # the following five commands must be executed in this directory
8 aclocal -I m4
9 if test -f /usr/bin/glibtoolize ; then
10         glibtoolize -c -f
11 else
12         libtoolize -c -f
13 fi
14 autoheader
15
16 #autoheader constructs config.h.in. From that, construct nrnconf.h.in
17 # and nmodlconf.h.in. The former is for binaries executed on the host machine
18 # and the latte is for binaryies executed on the build machine
19 sed '/Remove from nrnconf\.h\.in/,/^$/d' config.h.in > temp.tmp
20 ! cmp -s temp.tmp nrnconf.h.in && cp temp.tmp nrnconf.h.in
21 ! cmp -s temp.tmp nmodlconf.h.in && cp temp.tmp nmodlconf.h.in
22 rm temp.tmp
23
24 automake --add-missing --copy
25 sh extend_depcomp.sh
26 autoconf
27
28 # at this point the rest of the build process is identical as if you
29 # had just extracted a nrn-5.4.tar.gz file
30
31 # the configure, make, make install may be executed in this directory
32 # or a completely different build directory. Examples for this directory
33 # are:
34 # if Interviews was installed in ../iv and you want java
35 #       ./configure --prefix=`pwd` --with-nrnjava
36 # if InterViews was installed in $HOME/iv-15
37 #       ./configure --prefix=`pwd` --with-iv=$HOME/iv-15
38 # if this directory is $NSRC, InterViews was installed in $IV
39 # and you want to build in $NOBJ then cd to $NOBJ and use at least
40 #       $NSRC/configure --prefix=`pwd` --with-iv=$IV --srcdir=$NSRC
41
42 # make
43 # make install
44
45 ###########
46
Note: See TracBrowser for help on using the browser.