stubbing when gitlab is down

This commit is contained in:
edoapra 2023-07-07 11:49:18 -07:00
parent ec4bac0a87
commit 4e1e1a9561
No known key found for this signature in database
GPG key ID: 48E12DA1EDE9E1B0
2 changed files with 17 additions and 1 deletions

View file

@ -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

View 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