Admin/cronjob/self_update
author wenzelm
Wed, 28 Mar 2018 13:46:21 +0200
changeset 67955 f69ea1a88c1a
parent 67954 b731a8d37131
child 68650 7538b5f301ea
permissions -rwxr-xr-x
clarified handling of stdout vs. stderr: the cronjob should normally be silent;
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
{
f69ea1a88c1a clarified handling of stdout vs. stderr: the cronjob should normally be silent;
wenzelm
parents: 67954
diff changeset
    14
  hg -R isabelle pull "https://isabelle.in.tum.de/repos/isabelle" || echo "self_update pull failed" >&2
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