Skip to content

Commit

Permalink
bee-init: recognize github.molgen.mpg.de tag/release URLs
Browse files Browse the repository at this point in the history
eg
  bee init https://github.molgen.mpg.de/donald/clusterd/archive/v1.104.tar.gz
would create
  clusterd-1.104-0.bee
  • Loading branch information
donald committed Aug 24, 2016
1 parent 909fd52 commit 3dd3c8e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bee-init.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@ function initialize() {
surl="${surl} ${pname}.tar.gz"
fi

if [[ $surl =~ ^https://github\.molgen\.mpg\.de/([^/]+)/([^/]+)/archive/(.+)\.tar\.gz$ ]] ; then
pname="${BASH_REMATCH[2]}-${BASH_REMATCH[3]#v}"
fi

if [[ "${OPT_BUILDTYPE}" = "r-package" || "${surl}" = http://cran.r-project.org/src/contrib/* ]] ; then
local cran_pname
local cran_version
Expand Down

0 comments on commit 3dd3c8e

Please sign in to comment.