Skip to content
Snippets Groups Projects
Commit 89e25aa5 authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

Added help

parent 8982daa4
No related branches found
No related tags found
1 merge request!2DVMP work
...@@ -11,6 +11,21 @@ echo "Download generator artifacts for one or more of the physics processes" ...@@ -11,6 +11,21 @@ echo "Download generator artifacts for one or more of the physics processes"
PROCS=() PROCS=()
BRANCH="dvmp" BRANCH="dvmp"
function print_the_help {
echo "USAGE: $0 [-c config [[-c config ...]] script1 [script2...]"
echo "OPTIONS:"
echo " -p,--process Physics process name (can be defined multiple
times)."
echo " -b,--branch Git branch to download artifacts from (D:
$BRANCH)"
echo " -h,--help Print this message"
echo ""
echo " This script will download the relevant generator artifacts needed"
echo " for local testing of the benchmarks."
exit
}
while [ $# -gt 0 ] while [ $# -gt 0 ]
do do
key="$1" key="$1"
...@@ -25,6 +40,10 @@ do ...@@ -25,6 +40,10 @@ do
shift # past argument shift # past argument
shift # past value shift # past value
;; ;;
-h|--help)
print_the_help
shift
;;
*) # unknown option *) # unknown option
echo "unknown option" echo "unknown option"
exit 1 exit 1
...@@ -40,6 +59,9 @@ fi ...@@ -40,6 +59,9 @@ fi
for proc in ${PROCS[@]}; do for proc in ${PROCS[@]}; do
echo "Dowloading artifacts for $proc (branch: $BRANCH)" echo "Dowloading artifacts for $proc (branch: $BRANCH)"
wget https://eicweb.phy.anl.gov/EIC/benchmarks/physics_benchmarks/-/jobs/artifacts/$BRANCH/download?job=${proc}:jpsi_central:generate -O results.zip wget https://eicweb.phy.anl.gov/EIC/benchmarks/physics_benchmarks/-/jobs/artifacts/$BRANCH/download?job=${proc}:jpsi_central:generate -O results.zip
echo "Unpacking artifacts..."
unzip -u results.zip unzip -u results.zip
echo "Cleaning up..."
rm results.zip rm results.zip
done done
echo "All done"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment