Admin/cronjob/self_update
author wenzelm
Thu, 14 Jun 2018 17:50:23 +0200
changeset 68449 6d0f1a5a16ea
parent 67955 f69ea1a88c1a
child 68650 7538b5f301ea
permissions -rwxr-xr-x
auto update;

#!/bin/bash
#
# self-update of the administrative isabelle repository
#
# Need to copy this file manually to $HOME/cronjob in order to
# avoid overwriting the running self_update by itself!

source "$HOME/.bashrc"

cd "$HOME/cronjob"
mkdir -p run log

{
  hg -R isabelle pull "https://isabelle.in.tum.de/repos/isabelle" || echo "self_update pull failed" >&2
  hg -R isabelle update -C || echo "self_update update failed" >&2
  isabelle/bin/isabelle components -a 2>&1 || echo "self_update components failed" >&2
} > run/self_update.out