|
[Rivet-svn] rivet: Further improved flag handling -- thanks, Chris Gutschow!Rivet Mercurial rivet at projects.hepforge.orgFri Dec 16 23:15:02 GMT 2016
details: https://rivet.hepforge.org/hg/rivet/rev/aded19d77cbe branches: release-2-5-x changeset: 5660:aded19d77cbe user: Andy Buckley <andy at insectnation.org> date: Fri Dec 16 15:30:16 2016 +0000 description: Further improved flag handling -- thanks, Chris Gutschow! diffs (20 lines): --- a/bin/rivet-buildplugin.in Thu Dec 15 23:56:29 2016 +0000 +++ b/bin/rivet-buildplugin.in Fri Dec 16 15:30:16 2016 +0000 @@ -105,7 +105,7 @@ ## Link against ROOT if requested with_root=$(echo "$*" | egrep -- '--\<with-root\>') # echo $with_root -tmp="${*//--with-root/}" +tmp=$(echo "$*" | sed -e 's/--with-root//g') ## Just show the compiler command rather than execute it, if requested only_show=$(echo "$tmp" | egrep -- '--\<cmd\>|--\<dry-run\>') @@ -113,7 +113,7 @@ tmp=$(echo "$tmp" | sed -e 's/--cmd//g' -e 's/--dry-run//g') ## Reset positional params now that flags have been removed -test -n "$tmp" && set $tmp #< NB. protection against empty $tmp arg!! +set -- $tmp #< NB. protection against empty $tmp arg!! ## Get and check the library name libname=$1
More information about the Rivet-svn mailing list |