/[escript]/trunk/mk
ViewVC logotype

Annotation of /trunk/mk

Parent Directory Parent Directory | Revision Log Revision Log


Revision 109 - (hide annotations)
Mon Feb 14 04:14:35 2005 UTC (14 years, 9 months ago) by jgs
Original Path: trunk/esys2/mk
File size: 1348 byte(s)
commit of branch dev-01 back to main trunk on 2005-02-14

1 jgs 82 #!/bin/env bash
2     # $Id$
3     # a brutal building script for esys
4    
5 jgs 103 export ESYS_ROOT=${ESYS_ROOT:=`pwd`}
6    
7 jgs 85 MODULES="tools/CppUnitTest tools/mmio esysUtils escript finley"
8 jgs 82
9     (cd escript/lib; if [ ! -e py_src ]; then mkdir py_src; fi)
10    
11     (cd escript/inc; if [ ! -e escript ]; then ln -s ../src escript; fi)
12     (cd esysUtils/inc; if [ ! -e esysUtils ]; then ln -s ../src esysUtils; fi)
13     (cd finley/inc; if [ ! -e finley ]; then ln -s ../src finley; fi)
14    
15     (cd escript; if [ ! -e Makefile ]; then ln -s ./escript.mk Makefile; fi)
16     (cd esysUtils; if [ ! -e Makefile ]; then ln -s ./esysUtils.mk Makefile; fi)
17     (cd finley; if [ ! -e Makefile ]; then ln -s ./finley.mk Makefile; fi)
18     (cd tools/mmio; if [ ! -e Makefile ]; then ln -s ./mmio.mk Makefile; fi)
19     (cd tools/CppUnitTest; if [ ! -e Makefile ]; then ln -s ./CppUnitTest.mk Makefile; fi)
20    
21 jgs 109 if [ "$1" == "clean" ];
22     then
23     for module in $MODULES ; do \
24     (echo Cleaning: $module; cd $module; gmake clean) \
25     done
26     exit
27     fi
28    
29 jgs 82 for module in $MODULES ; do \
30 jgs 103 (echo Building: $module; cd $module; gmake) \
31 jgs 82 done
32    
33 jgs 101 if [ "$1" == "install" ];
34     then
35     for module in $MODULES ; do \
36 jgs 103 (echo Installing: $module; cd $module; gmake install) \
37 jgs 101 done
38     (cd esys; if [ ! -e escriptcpp.so ]; then ln -s ../lib/libescriptcpp.so escriptcpp.so; fi)
39     (cd esys; if [ ! -e finleycpp.so ]; then ln -s ../lib/libfinleycpp.so finleycpp.so; fi)
40     fi
41    

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26