forked from geodynamics/hc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake_binary_package
More file actions
executable file
·30 lines (25 loc) · 905 Bytes
/
Copy pathmake_binary_package
File metadata and controls
executable file
·30 lines (25 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
#
# create a directory with the binaries. It invokes make, so it needs
# NETCDFHOME and GMTHOME set. ARCH should not be set.
#
# On Linux and cygwin, invoke as
#
# LDFLAGS=-static ./make_binary_package
#
# On the Mac, you need to delete the dynamic libraries in
# ~/netcdf/lib/. This forces the linker to use the static libraries.
# Then you can build static libraries with "./make_binary_package"
ver=1.0
dest=../hc-$ver
rm -rf bin objects
CFLAGS="-O2" make all
mkdir "$dest"
cp README.TXT calc_vel_and_plot dens.sh.dat visc.dat "$dest"
mkdir "$dest/example_data" "$dest/prem" "$dest/bin"
cp bin/$ARCH/* "$dest/bin"
strip "$dest/bin/"*
cp example_data/* "$dest/example_data"
cp prem/* "$dest/prem"
mkdir "$dest/hcplates"
cp hcplates/data hcplates/enes hcplates/parameter_file.default hcplates/plates_ids.ixz hcplates/point.j hcplates/README hcplates/run_example.mk "$dest/hcplates"