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

Contents of /trunk/esys2/mk

Parent Directory Parent Directory | Revision Log Revision Log


Revision 109 - (show annotations)
Mon Feb 14 04:14:35 2005 UTC (18 years, 1 month ago) by jgs
File size: 1348 byte(s)
commit of branch dev-01 back to main trunk on 2005-02-14

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
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 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 for module in $MODULES ; do \
30 (echo Building: $module; cd $module; gmake) \
31 done
32
33 if [ "$1" == "install" ];
34 then
35 for module in $MODULES ; do \
36 (echo Installing: $module; cd $module; gmake install) \
37 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