Skip to content

Commit

Permalink
Merge pull request #68 from pmpowers-usgs/auto-rjb-67
Browse files Browse the repository at this point in the history
added meanrjb script
  • Loading branch information
pmpowers-usgs committed Oct 19, 2016
2 parents 492d1d1 + 5d1a01a commit a5487ed
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ getmeanrjf: iosubs
$(F_COMPILER) $(FFLAGS1) -o $(OUT)/getmeanrjf $(UTIL)/getmeanrjf.f $(SRC)/iosubs.o
getmeanrjf.v2: iosubs
$(F_COMPILER) $(FFLAGS1) -o $(OUT)/getmeanrjf.v2 $(UTIL)/getmeanrjf.v2.f $(SRC)/iosubs.o
scripts/meanrjb.sh
gutenberg: iosubs
$(F_COMPILER) $(FFLAGS1) -o $(OUT)/gutenberg $(UTIL)/gutenberg.f $(SRC)/iosubs.o
assim.2013:
Expand All @@ -118,4 +119,4 @@ clean:
rm -f $(SRC)/*.o

cleanall:
rm -f $(OUT)/* $(SRC)/*.o
rm -f $(OUT)/* $(SRC)/*.o
29 changes: 29 additions & 0 deletions scripts/meanrjb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash

# This script will (re)create all required rjb files
# on the assumption that bin/getmeanrjf.v2 exists.
# Can be called from scripts directory of project root (make).

PATHDIR=`pwd`
DIR=`basename "$PATHDIR"`
if [[ $DIR == 'scripts' ]]; then
echo 'yo'
cd ..
fi
cd bin

./getmeanrjf.v2 << END
1
END
mv rjbmean.bin.srl meanrjb.bin
rm rjbmean.dat.srl

./getmeanrjf.v2 << END
3
END
rm rjbmean.dat.Aeast

./getmeanrjf.v2 << END
4
END
rm rjbmean.dat.geoma

0 comments on commit a5487ed

Please sign in to comment.