|
[Rivet-svn] rivet: 3 new changesetsRivet Mercurial rivet at projects.hepforge.orgFri Jun 16 10:15:01 BST 2017
details: https://rivet.hepforge.org/hg/rivet/rev/c7b201b9e94c branches: changeset: 5818:c7b201b9e94c user: David Grellscheid <david.grellscheid at durham.ac.uk> date: Fri Jun 16 11:02:42 2017 +0200 description: Use a tmp makefile for rivet-buildplugin details: https://rivet.hepforge.org/hg/rivet/rev/926d1f0639d1 branches: changeset: 5819:926d1f0639d1 user: David Grellscheid <david.grellscheid at durham.ac.uk> date: Fri Jun 16 11:04:27 2017 +0200 description: User flags moved to the end of command lines. details: https://rivet.hepforge.org/hg/rivet/rev/3bfc3645fbfa branches: changeset: 5820:3bfc3645fbfa user: David Grellscheid <david.grellscheid at durham.ac.uk> date: Fri Jun 16 11:10:35 2017 +0200 description: Exit early when make fails. diffs (truncated from 234 to 50 lines): --- a/bin/rivet-buildplugin.in Fri Jun 16 10:06:37 2017 +0200 +++ b/bin/rivet-buildplugin.in Fri Jun 16 11:10:35 2017 +0200 @@ -9,7 +9,7 @@ let num_jobs=$(getconf _NPROCESSORS_ONLN) function usage { - cat <<-EOF + cat <<-EOF $PROG: compile a Rivet analysis plugin library from one or more sources @@ -29,6 +29,7 @@ -r | --with-root: add ROOT link options (requires root-config on system) -n | --cmd | --dry-run: just print the generated commands, do not execute + -k | --keep: keep intermediate files EOF } @@ -38,28 +39,30 @@ args=() for arg do - case "$arg" in - # translate our long options - --help ) args+=("-h");; - --with-root ) args+=("-r");; - --cmd | --dry-run ) args+=("-n");; - # pass through anything else + case "$arg" in + # translate our long options + --help ) args+=("-h");; + --with-root ) args+=("-r");; + --cmd | --dry-run ) args+=("-n");; + --keep ) args+=("-k");; + # pass through anything else * ) args+=("$arg");; - esac + esac done # reset the translated args set -- "${args[@]}" # now we can process with getopt -while getopts ":hrnj:" opt; do - case $opt in - h) usage; exit 0 ;; +while getopts ":hj:rnk" opt; do + case $opt in + h) usage; exit 0 ;;
More information about the Rivet-svn mailing list |