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,7 +155,11 @@ make clean
155 # ================ # 155 # ================ #
156 cd $SRCDIR 156 cd $SRCDIR
157 if [ ! -d "$GAMMALIB" ]; then 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 if [ "$?" -ne "0" ]; then 163 if [ "$?" -ne "0" ]; then
160 if [ ! -d "gammalib" ]; then 164 if [ ! -d "gammalib" ]; then
161 echo "*** Unable to download $GAMMALIB.tar.gz, try cloning from GitLab" 165 echo "*** Unable to download $GAMMALIB.tar.gz, try cloning from GitLab"
@@ -211,7 +215,11 @@ make clean @@ -211,7 +215,11 @@ make clean
211 cd $SRCDIR 215 cd $SRCDIR
212 CTOOLS_DIR=$CTOOLS 216 CTOOLS_DIR=$CTOOLS
213 if [ ! -d "$CTOOLS" ]; then 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 if [ "$?" -ne "0" ]; then 223 if [ "$?" -ne "0" ]; then
216 if [ ! -d "ctools" ]; then 224 if [ ! -d "ctools" ]; then
217 echo "*** Unable to download $CTOOLS.tar.gz, try cloning from GitLab" 225 echo "*** Unable to download $CTOOLS.tar.gz, try cloning from GitLab"