Admin/cronjob/self_update
author wenzelm
Fri, 17 Apr 2020 22:13:50 +0200
changeset 71765 c4e0d29cf1ca
parent 68650 7538b5f301ea
child 73479 6e20976d58f5
permissions -rwxr-xr-x
discontinued somewhat incoherent patches (see also 3b36fc4916af);

#!/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.sketis.net/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