mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-28 14:15:30 -04:00
stubbing when gitlab is down
This commit is contained in:
parent
ec4bac0a87
commit
4e1e1a9561
2 changed files with 17 additions and 1 deletions
|
|
@ -1,6 +1,15 @@
|
|||
# $Id$
|
||||
|
||||
# check gitlab connectivity
|
||||
GITLAB_UP := $(shell ./check_gitlab.sh 2> /dev/null)
|
||||
ifndef GITLAB_UP
|
||||
$(info cannot download from gitlab)
|
||||
$(info stubbing nwc_columbus module)
|
||||
OBJ = sifs_stubs.o
|
||||
LIBRARY = libnwc_columbus.a
|
||||
else
|
||||
$(info gitlab connectivity OK)
|
||||
SUBDIRS = sifs aoints
|
||||
endif
|
||||
|
||||
include ../config/makefile.h
|
||||
include ../config/makelib.h
|
||||
|
|
|
|||
7
src/nwc_columbus/check_gitlab.sh
Executable file
7
src/nwc_columbus/check_gitlab.sh
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
rm -f o.tgz
|
||||
wget -O o.tgz https://gitlab.com/api/v4/projects/36816383/repository/archive?path=Columbus/source/colib 2> /dev/null
|
||||
gzip -d -t o.tgz
|
||||
if [ "$?" -eq 0 ]; then
|
||||
echo OK
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue