summaryrefslogtreecommitdiff
path: root/metadata/scripts/update.sh
diff options
context:
space:
mode:
authorBjörn Mattsson <bjorn@sunet.se>2023-03-06 11:22:05 +0100
committerBjörn Mattsson <bjorn@sunet.se>2023-03-06 11:22:05 +0100
commit467dbdbf3d7212e25ee69daeaadd8adba7c7c5b8 (patch)
treed3576d5f2d4b5cc676c0a12ef8f8c3c83b474bf5 /metadata/scripts/update.sh
parentbc1d55080e5d42e6ef2bba892d640aa8f68bbc90 (diff)
Moved files to make ths repo signed
Diffstat (limited to 'metadata/scripts/update.sh')
-rwxr-xr-xmetadata/scripts/update.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/metadata/scripts/update.sh b/metadata/scripts/update.sh
new file mode 100755
index 00000000..5d1a9a2f
--- /dev/null
+++ b/metadata/scripts/update.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+update()
+{
+ echo "git pull"
+ git pull || return $?
+ echo
+
+ echo "make aggregate"
+ make aggregate || return $?
+ echo
+
+ echo "make test"
+ make test || return $?
+ echo
+
+ echo "make"
+ make || return $?
+ echo
+}
+
+cd /opt/swamid-metadata || exit 1
+output=$(update 2>&1)
+ret=$?
+if [ "$ret" != "0" ] ; then
+ echo "$output"
+ exit $ret
+fi