Skip to content

Commit

Permalink
makefile for deployment mangling
Browse files Browse the repository at this point in the history
  • Loading branch information
wresch committed May 19, 2022
1 parent 87fb68f commit 4756d68
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.ONESHELL:


deploy: spark pyspark-jupyter
ifdef ver
$(eval prefix := /usr/local/Spark/$(ver))
else
$(info Usage: make deploy ver=X.X.X)
$(error ver is required)
endif
sed -e 's:^soc_sparkdir=.*$$:soc_sparkdir=/data/$$USER/.spark-on-biowulf:' \
-e 's:^soc_headnode=.*$$:soc_headnode=biowulf.nih.gov:' \
-e 's:^soc_sparkver=.*$$:soc_sparkver=$(ver):' $< > tmp_$<
install -m 755 --backup tmp_$< $(prefix)/bin/$<
install -m 755 --backup $(word 2,$^) $(prefix)/bin/$(word 2,$^)
rm tmp_$<

0 comments on commit 4756d68

Please sign in to comment.