File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -10,16 +10,18 @@ if [ "${TRAVIS_TAG}" == "" ] ; then
1010 RELEASEVER=${TRAVIS_BRANCH} -0.0.$( date -d @` git log -1 ${TRAVIS_COMMIT} --pretty=medium --format=%ct` +%y%m%d%H%M)
1111 BM_FORCEOPT=' -f'
1212else
13+ RELEASELINE=${GHREPO_NAME}
1314 RELEASELINE_=$( echo ${TRAVIS_TAG} | sed ' s/-.*$//' )
14- if [ " ${RELEASELINE_} " != " ${TRAVIS_TAG} " ] ; then
15+ if [[ $TRAVIS_TAG =~ ^v[0-9]+\. [0-9]+\. [0-9]+$ ]] ; then
16+ RELEASELINE=" intiki"
17+ elif [ " ${RELEASELINE_} " != " ${TRAVIS_TAG} " ] ; then
1518 RELEASELINE=${RELEASELINE_}
16- else
17- RELEASELINE=${GHREPO_NAME}
1819 fi
20+
1921 PKGJSON=package_${GHREPO_USER} _${RELEASELINE} _index.json
2022 ARCHIVENAME=${GHREPO_NAME} -${TRAVIS_TAG}
2123 ARCHIVEURL=" https://github.com/${TRAVIS_REPO_SLUG} /releases/download/${TRAVIS_TAG} /${ARCHIVENAME} .tar.bz2"
22- RELEASEVER=${TRAVIS_TAG}
24+ RELEASEVER=$( echo $ {TRAVIS_TAG} | rev | sed ' s/^\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$/\1/ ' | rev )
2325 BM_FORCEOPT=
2426fi
2527
You can’t perform that action at this time.
0 commit comments