Skip to content

Commit a5487ed

Browse files
Merge pull request #68 from pmpowers-usgs/auto-rjb-67
added meanrjb script
2 parents 492d1d1 + 5d1a01a commit a5487ed

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ getmeanrjf: iosubs
107107
$(F_COMPILER) $(FFLAGS1) -o $(OUT)/getmeanrjf $(UTIL)/getmeanrjf.f $(SRC)/iosubs.o
108108
getmeanrjf.v2: iosubs
109109
$(F_COMPILER) $(FFLAGS1) -o $(OUT)/getmeanrjf.v2 $(UTIL)/getmeanrjf.v2.f $(SRC)/iosubs.o
110+
scripts/meanrjb.sh
110111
gutenberg: iosubs
111112
$(F_COMPILER) $(FFLAGS1) -o $(OUT)/gutenberg $(UTIL)/gutenberg.f $(SRC)/iosubs.o
112113
assim.2013:
@@ -118,4 +119,4 @@ clean:
118119
rm -f $(SRC)/*.o
119120

120121
cleanall:
121-
rm -f $(OUT)/* $(SRC)/*.o
122+
rm -f $(OUT)/* $(SRC)/*.o

scripts/meanrjb.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash
2+
3+
# This script will (re)create all required rjb files
4+
# on the assumption that bin/getmeanrjf.v2 exists.
5+
# Can be called from scripts directory of project root (make).
6+
7+
PATHDIR=`pwd`
8+
DIR=`basename "$PATHDIR"`
9+
if [[ $DIR == 'scripts' ]]; then
10+
echo 'yo'
11+
cd ..
12+
fi
13+
cd bin
14+
15+
./getmeanrjf.v2 << END
16+
1
17+
END
18+
mv rjbmean.bin.srl meanrjb.bin
19+
rm rjbmean.dat.srl
20+
21+
./getmeanrjf.v2 << END
22+
3
23+
END
24+
rm rjbmean.dat.Aeast
25+
26+
./getmeanrjf.v2 << END
27+
4
28+
END
29+
rm rjbmean.dat.geoma

0 commit comments

Comments
 (0)