1#!/bin/bash
2#
3# self-update of the administrative isabelle repository
4#
5# Need to copy this file manually to $HOME/cronjob in order to
6# avoid overwriting the running self_update by itself!
7
8source "$HOME/.bashrc"
9
10cd "$HOME/cronjob"
11mkdir -p run log
12
13{
14  hg -R isabelle pull "https://isabelle.sketis.net/repos/isabelle" || echo "self_update pull failed" >&2
15  hg -R isabelle update -C || echo "self_update update failed" >&2
16  isabelle/bin/isabelle components -a 2>&1 || echo "self_update components failed" >&2
17} > run/self_update.out
18