/[escript]/trunk/esys2/mk
ViewVC logotype

Contents of /trunk/esys2/mk

Parent Directory Parent Directory | Revision Log Revision Log


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

1 #!/bin/env bash
2 # $Id$
3 # a brutal building script for esys
4
5 export ESYS_ROOT=${ESYS_ROOT:=`pwd`}
6
7 MODULES="tools/CppUnitTest tools/mmio esysUtils escript finley"
8 #MODULES="escript finley"
9
10 if [ "$1" == "clean" ];
11 then
12 for module in $MODULES ; do \
13 (echo Cleaning: $module; cd $module; gmake clean) \
14 done
15 exit
16 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 (echo Building: $module; cd $module; gmake) \
32 done
33
34 if [ "$1" == "install" ];
35 then
36 for module in $MODULES ; do \
37 (echo Installing: $module; cd $module; gmake install) \
38 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