[d/rpn] handle VERSION=develop

Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
This commit is contained in:
Gwenhael Le Moine 2022-02-22 09:50:14 +01:00
parent ae3ab82b57
commit 116b8d2628
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -33,6 +33,7 @@ cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
cd $TMP/$PRGNAM-$VERSION
[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1)
[ "x$VERSION" == "x" ] && VERSION=trunk
[ "x$VERSION" == "xdevelop" ] && git checkout develop && VERSION=trunk
[ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION
sed -i 's|git@github.com:|https://github.com/|g' $(grep -l git@ .*)