Changeset 3012
- Timestamp:
- 02/10/10 15:30:22 (15 years ago)
- Location:
- issm/trunk/externalpackages/meshpart
- Files:
-
- 1 added
- 7 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/externalpackages/meshpart/install.sh
r2975 r3012 1 1 #!/bin/bash 2 2 3 # Some cleanup3 # Some cleanup 4 4 rm -rf meshpart 5 5 rm -rf src 6 6 rm -rf install 7 7 8 # Create src and install directories8 # Create src and install directories 9 9 mkdir src install 10 10 11 # Untar11 # Untar 12 12 tar -xvzf meshpart-020208.tar.gz 13 13 mkdir meshpart/metis 14 14 tar -xvzf metismex-4.0.tar.gz -C meshpart/metis 15 #proto.h in metis library is not patched, at least for metismex, so create a local version 16 cp ../metis/install/Lib/proto.h meshpart/metis 15 17 16 # Move meshpart to src directory18 # Move meshpart to src directory 17 19 mv meshpart/* src 18 20 rm -rf meshpart 19 21 20 #Apply patches 21 patch src/fiedler.m fiedler.m.patch 22 patch src/chaco.m chaco.m.patch 23 patch src/meshdemo.m meshdemo.m.patch 24 patch src/metis/metismex.c metismex.c.patch 25 patch src/chaco/mlchaco.c mlchaco.c.patch 26 patch src/chaco/Makefile Makefile.patch 22 # Apply patches (all at once) 23 # (written by diff -rc src ~/Libs/meshpart > meshpart.patch) 24 patch -p0 < meshpart.patch 27 25 28 26 #Nothing to build for meshpart itself … … 30 28 #Build metismex 31 29 cd src/metis 32 #proto.h in metis library is not patched, at least for metismex, so create alocal version30 #proto.h in metis library is not patched, at least for metismex, so link with local version 33 31 #mex -I../../../metis/install/Lib -L../../../metis/install -lmetis -largeArrayDims metismex.c 34 cp ../../../metis/install/Lib/proto.h .35 patch proto.h ../../proto.h.patch36 32 mex -I. -I../../../metis/install/Lib -L../../../metis/install -lmetis -largeArrayDims metismex.c 33 mv metismex.mex* .. 37 34 cd ../.. 38 35
Note:
See TracChangeset
for help on using the changeset viewer.