/[escript]/trunk/mk
ViewVC logotype

Annotation of /trunk/mk

Parent Directory Parent Directory | Revision Log Revision Log


Revision 103 - (hide annotations)
Fri Dec 17 07:43:04 2004 UTC (14 years, 11 months ago) by jgs
Original Path: trunk/esys2/mk
File size: 1374 byte(s)
merge of dev-01 branch back to main trunk on 2004-12-17

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     #MODULES="escript finley"
9 jgs 82
10     if [ "$1" == "clean" ];
11     then
12     for module in $MODULES ; do \
13 jgs 101 (echo Cleaning: $module; cd $module; gmake clean) \
14 jgs 82 done
15 jgs 103 exit
16 jgs 82 fi
17    
18     (cd escript/lib; if [ ! -e py_src ]; then mkdir py_src; fi)
19    
20     (cd escript/inc; if [ ! -e escript ]; then ln -s ../src escript; fi)
21     (cd esysUtils/inc; if [ ! -e esysUtils ]; then ln -s ../src esysUtils; fi)
22     (cd finley/inc; if [ ! -e finley ]; then ln -s ../src finley; fi)
23    
24     (cd escript; if [ ! -e Makefile ]; then ln -s ./escript.mk Makefile; fi)
25     (cd esysUtils; if [ ! -e Makefile ]; then ln -s ./esysUtils.mk Makefile; fi)
26     (cd finley; if [ ! -e Makefile ]; then ln -s ./finley.mk Makefile; fi)
27     (cd tools/mmio; if [ ! -e Makefile ]; then ln -s ./mmio.mk Makefile; fi)
28     (cd tools/CppUnitTest; if [ ! -e Makefile ]; then ln -s ./CppUnitTest.mk Makefile; fi)
29    
30     for module in $MODULES ; do \
31 jgs 103 (echo Building: $module; cd $module; gmake) \
32 jgs 82 done
33    
34 jgs 101 if [ "$1" == "install" ];
35     then
36     for module in $MODULES ; do \
37 jgs 103 (echo Installing: $module; cd $module; gmake install) \
38 jgs 101 done
39     (cd esys; if [ ! -e escriptcpp.so ]; then ln -s ../lib/libescriptcpp.so escriptcpp.so; fi)
40     (cd esys; if [ ! -e finleycpp.so ]; then ln -s ../lib/libfinleycpp.so finleycpp.so; fi)
41     fi
42    

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26