author | wenzelm |
Fri, 26 May 2023 13:19:49 +0200 | |
changeset 78114 | 43154a48da69 |
parent 73486 | 1a6637572b70 |
permissions | -rwxr-xr-x |
64148 | 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 |
||
8 |
source "$HOME/.bashrc" |
|
9 |
||
10 |
cd "$HOME/cronjob" |
|
11 |
mkdir -p run log |
|
12 |
||
73486 | 13 |
( |
73485 | 14 |
export LANG=C |
15 |
export HGPLAIN= |
|
16 |
||
73479 | 17 |
"${HG:-hg}" -R isabelle pull "https://isabelle.sketis.net/repos/isabelle" || echo "self_update pull failed" >&2 |
18 |
"${HG:-hg}" -R isabelle update -C || echo "self_update update failed" >&2 |
|
67955
f69ea1a88c1a
clarified handling of stdout vs. stderr: the cronjob should normally be silent;
wenzelm
parents:
67954
diff
changeset
|
19 |
isabelle/bin/isabelle components -a 2>&1 || echo "self_update components failed" >&2 |
73486 | 20 |
) > run/self_update.out |