Commit 08b6fbacd01eb4b516c32aa6c92eeeff744260bd

Authored by Jürgen Knödlseder
1 parent 86e24203

Mac OS X package build uses GitLab code for devel version

Showing 1 changed file with 10 additions and 2 deletions
dev/pkgbuild-macosx.sh
... ... @@ -155,7 +155,11 @@ make clean
155 155 # ================ #
156 156 cd $SRCDIR
157 157 if [ ! -d "$GAMMALIB" ]; then
158   - wget http://cta.irap.omp.eu/ctools/releases/gammalib/$GAMMALIB.tar.gz
  158 + if [[ $GAMMALIB == *"dev"* ]]; then
  159 + command_that_does_not_exist_to_provoke_error
  160 + else
  161 + wget http://cta.irap.omp.eu/ctools/releases/gammalib/$GAMMALIB.tar.gz
  162 + fi
159 163 if [ "$?" -ne "0" ]; then
160 164 if [ ! -d "gammalib" ]; then
161 165 echo "*** Unable to download $GAMMALIB.tar.gz, try cloning from GitLab"
... ... @@ -211,7 +215,11 @@ make clean
211 215 cd $SRCDIR
212 216 CTOOLS_DIR=$CTOOLS
213 217 if [ ! -d "$CTOOLS" ]; then
214   - wget http://cta.irap.omp.eu/ctools/releases/ctools/$CTOOLS.tar.gz
  218 + if [[ $CTOOLS == *"dev"* ]]; then
  219 + command_that_does_not_exist_to_provoke_error
  220 + else
  221 + wget http://cta.irap.omp.eu/ctools/releases/ctools/$CTOOLS.tar.gz
  222 + fi
215 223 if [ "$?" -ne "0" ]; then
216 224 if [ ! -d "ctools" ]; then
217 225 echo "*** Unable to download $CTOOLS.tar.gz, try cloning from GitLab"
... ...