Commit b6c1883703910ccdc75aca1f0097a21c2ba816f6
1 parent
97fa196e
Exists in
master
and in
5 other branches
Adding option to build "branched" versions on windows package.
Showing
1 changed file
with
9 additions
and
1 deletions
Show diff stats
win/pack.sh
| @@ -77,7 +77,15 @@ prepare() | @@ -77,7 +77,15 @@ prepare() | ||
| 77 | 77 | ||
| 78 | mkdir -p ${WORKDIR}/sources | 78 | mkdir -p ${WORKDIR}/sources |
| 79 | 79 | ||
| 80 | - git clone --quiet ${GIT_URL}/${1}.git ${WORKDIR}/sources/${1} | 80 | + TEMPVAR=${1}_branch |
| 81 | + BRANCH=${!TEMPVAR} | ||
| 82 | + | ||
| 83 | + if [ -z ${BRANCH} ]; then | ||
| 84 | + git clone --quiet ${GIT_URL}/${1}.git ${WORKDIR}/sources/${1} | ||
| 85 | + else | ||
| 86 | + git clone --quiet --branch "${BRANCH}" ${GIT_URL}/${1}.git ${WORKDIR}/sources/${1} | ||
| 87 | + fi | ||
| 88 | + | ||
| 81 | if [ "$?" != "0" ]; then | 89 | if [ "$?" != "0" ]; then |
| 82 | failed "Can't get sources for ${1}" | 90 | failed "Can't get sources for ${1}" |
| 83 | fi | 91 | fi |