CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

| Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

Views: 418346
1
#!/bin/sh -ex
2
3
TMP="$1".tmp
4
DST="$1"
5
6
# Determine build version and date
7
GAP_BUILD_VERSION="4.8.10, 15-Jan-2018, build"
8
if command -v git >/dev/null 2>&1 ; then
9
if test -d .git ; then
10
GAP_BUILD_VERSION=`git describe --tags --dirty || echo`
11
fi
12
fi
13
GAP_BUILD_DATE=`date +"%Y-%m-%d %H:%M:%S (%Z)"`
14
15
# Generate the file
16
cat > "$TMP" <<EOF
17
#ifndef GAP_BUILD_VERSION
18
#define GAP_BUILD_VERSION "$GAP_BUILD_VERSION"
19
#define GAP_BUILD_DATETIME "$GAP_BUILD_DATE"
20
#endif
21
EOF
22
23
# Only copy the header over if there were any changes, to
24
# avoid pointless recompiles.
25
if ! cmp -s $TMP $DST ; then
26
cp "$TMP" "$DST"
27
fi;
28
29
rm $TMP
30
31