Admin/cronjob/self_update
author wenzelm
Sat, 28 Nov 2020 16:25:29 +0100
changeset 72759 bd5ee3148132
parent 68650 7538b5f301ea
child 73479 6e20976d58f5
permissions -rwxr-xr-x
more antiquotations (reverting 4df341249348);
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
64148
bbf43b7c4d0d basic setup for Isabelle cronjob;
wenzelm
parents:
diff changeset
     1
#!/bin/bash
bbf43b7c4d0d basic setup for Isabelle cronjob;
wenzelm
parents:
diff changeset
     2
#
bbf43b7c4d0d basic setup for Isabelle cronjob;
wenzelm
parents:
diff changeset
     3
# self-update of the administrative isabelle repository
bbf43b7c4d0d basic setup for Isabelle cronjob;
wenzelm
parents:
diff changeset
     4
#
bbf43b7c4d0d basic setup for Isabelle cronjob;
wenzelm
parents:
diff changeset
     5
# Need to copy this file manually to $HOME/cronjob in order to
bbf43b7c4d0d basic setup for Isabelle cronjob;
wenzelm
parents:
diff changeset
     6
# avoid overwriting the running self_update by itself!
bbf43b7c4d0d basic setup for Isabelle cronjob;
wenzelm
parents:
diff changeset
     7
bbf43b7c4d0d basic setup for Isabelle cronjob;
wenzelm
parents:
diff changeset
     8
source "$HOME/.bashrc"
bbf43b7c4d0d basic setup for Isabelle cronjob;
wenzelm
parents:
diff changeset
     9
bbf43b7c4d0d basic setup for Isabelle cronjob;
wenzelm
parents:
diff changeset
    10
cd "$HOME/cronjob"
bbf43b7c4d0d basic setup for Isabelle cronjob;
wenzelm
parents:
diff changeset
    11
mkdir -p run log
bbf43b7c4d0d basic setup for Isabelle cronjob;
wenzelm
parents:
diff changeset
    12
67955
f69ea1a88c1a clarified handling of stdout vs. stderr: the cronjob should normally be silent;
wenzelm
parents: 67954
diff changeset
    13
{
68650
7538b5f301ea evade odd connection problems to https://isabelle.in.tum.de from some remote hosts;
wenzelm
parents: 67955
diff changeset
    14
  hg -R isabelle pull "https://isabelle.sketis.net/repos/isabelle" || echo "self_update pull failed" >&2
67955
f69ea1a88c1a clarified handling of stdout vs. stderr: the cronjob should normally be silent;
wenzelm
parents: 67954
diff changeset
    15
  hg -R isabelle update -C || echo "self_update update failed" >&2
f69ea1a88c1a clarified handling of stdout vs. stderr: the cronjob should normally be silent;
wenzelm
parents: 67954
diff changeset
    16
  isabelle/bin/isabelle components -a 2>&1 || echo "self_update components failed" >&2
f69ea1a88c1a clarified handling of stdout vs. stderr: the cronjob should normally be silent;
wenzelm
parents: 67954
diff changeset
    17
} > run/self_update.out