author | wenzelm |
Mon, 17 Dec 2012 14:07:34 +0100 | |
changeset 50575 | ae1da46022d1 |
parent 50457 | ba9046bbb3ac |
child 50617 | 9df2f825422b |
permissions | -rw-r--r-- |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
1 |
Important notes on Mercurial repository access for Isabelle |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
2 |
=========================================================== |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
3 |
|
50453 | 4 |
Quick start in 25min |
49348 | 5 |
-------------------- |
6 |
||
50453 | 7 |
1a. Windows: ensure that Cygwin with Mercurial and Perl is installed; |
8 |
see also http://www.cygwin.com/ |
|
9 |
||
10 |
1b. Mac OS X and Linux: ensure that Mercurial (hg) is installed; see |
|
11 |
also http://www.selenic.com/mercurial |
|
49348 | 12 |
|
50575 | 13 |
2. Create file $HOME/.isabelle/etc/settings and insert the following |
49348 | 14 |
line near its beginning: |
15 |
||
50575 | 16 |
init_components "$HOME/.isabelle/contrib" "$ISABELLE_HOME/Admin/components/main" |
49348 | 17 |
|
50453 | 18 |
3. Execute bash shell commands as follows: |
49348 | 19 |
|
20 |
hg clone http://isabelle.in.tum.de/repos/isabelle |
|
21 |
||
50575 | 22 |
cd isabelle |
49348 | 23 |
|
50575 | 24 |
./bin/isabelle components -a |
49348 | 25 |
|
50575 | 26 |
./bin/isabelle jedit -l HOL |
49348 | 27 |
|
50575 | 28 |
4. To stay up-to-date later on, pull changes like this: |
50281
cbba16084784
further update and clarification of the all-important README_REPOSITORY;
wenzelm
parents:
49443
diff
changeset
|
29 |
|
cbba16084784
further update and clarification of the all-important README_REPOSITORY;
wenzelm
parents:
49443
diff
changeset
|
30 |
cd isabelle |
cbba16084784
further update and clarification of the all-important README_REPOSITORY;
wenzelm
parents:
49443
diff
changeset
|
31 |
|
cbba16084784
further update and clarification of the all-important README_REPOSITORY;
wenzelm
parents:
49443
diff
changeset
|
32 |
hg pull -u |
cbba16084784
further update and clarification of the all-important README_REPOSITORY;
wenzelm
parents:
49443
diff
changeset
|
33 |
|
50575 | 34 |
./bin/isabelle components -a |
35 |
||
36 |
./bin/isabelle jedit -l HOL |
|
37 |
||
49348 | 38 |
|
40601 | 39 |
Introduction |
40 |
------------ |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
41 |
|
40601 | 42 |
Mercurial http://www.selenic.com/mercurial belongs to the current |
43 |
generation of source code management systems that follow the so-called |
|
44 |
paradigm of "distributed version control". This is a terrific name |
|
45 |
for plain revision control without the legacy of CVS or SVN. See also |
|
46 |
http://hginit.com/ for an introduction to the main ideas. The |
|
47 |
Mercurial book http://hgbook.red-bean.com/ explains many more details. |
|
48 |
||
49 |
Mercurial offers great flexibility in organizing the flow of changes, |
|
50 |
both between individual developers and designated pull/push areas that |
|
51 |
are shared with others. This additional power demands some additional |
|
52 |
responsibility to maintain a certain development process that fits to |
|
53 |
a particular project. |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
54 |
|
40601 | 55 |
Regular Mercurial operations are strictly monotonic, where changeset |
56 |
transactions are only added, but never deleted. There are special |
|
57 |
tools to manipulate repositories via non-monotonic actions (such as |
|
58 |
"rollback" or "strip"), but recovering from gross mistakes that have |
|
59 |
escaped into the public can be hard and embarrassing. It is much |
|
60 |
easier to inspect and amend changesets routinely before pushing. |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
61 |
|
40601 | 62 |
The effect of the critical "pull" / "push" operations can be tested in |
63 |
a dry run via "incoming" / "outgoing". The "fetch" extension includes |
|
64 |
useful sanity checks beyond raw "pull" / "update" / "merge". Most |
|
65 |
other operations are local to the user's repository clone. This gives |
|
66 |
some freedom for experimentation without affecting anybody else. |
|
67 |
||
68 |
Mercurial provides nice web presentation of incoming changes with a |
|
69 |
digest of log entries; this also includes RSS/Atom news feeds. There |
|
47449 | 70 |
are add-on history browsers such as "hg view" and TortoiseHg. Unlike |
71 |
the default web view, some of these tools help to inspect the semantic |
|
72 |
content of non-trivial merge nodes. |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
73 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
74 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
75 |
Initial configuration |
29481 | 76 |
--------------------- |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
77 |
|
28913 | 78 |
The official Isabelle repository can be cloned like this: |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
79 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
80 |
hg clone http://isabelle.in.tum.de/repos/isabelle |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
81 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
82 |
This will create a local directory "isabelle", unless an alternative |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
83 |
name is specified. The full repository meta-data and history of |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
84 |
changes is in isabelle/.hg; local configuration for this clone can be |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
85 |
added to isabelle/.hg/hgrc, but note that hgrc files are never copied |
40601 | 86 |
by another clone operation. |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
87 |
|
28917 | 88 |
|
28913 | 89 |
There is also $HOME/.hgrc for per-user Mercurial configuration. The |
40601 | 90 |
initial configuration requires at least an entry to identify yourself |
91 |
as follows: |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
92 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
93 |
[ui] |
40601 | 94 |
username = XXX |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
95 |
|
40601 | 96 |
Isabelle contributors are free to choose either a short "login name" |
97 |
(for accounts at TU Munich) or a "full name" -- with or without mail |
|
98 |
address. It is important to stick to this choice once and for all. |
|
99 |
The machine default that Mercurial produces for unspecified |
|
100 |
[ui]username is not appropriate. |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
101 |
|
40601 | 102 |
Such configuration can be given in $HOME/.hgrc (for each home |
103 |
directory on each machine) or in .hg/hgrc (for each repository clone). |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
104 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
105 |
|
40601 | 106 |
Here are some further examples for hgrc. This is how to provide |
107 |
default options for common commands: |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
108 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
109 |
[defaults] |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
110 |
log = -l 10 |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
111 |
|
40601 | 112 |
This is how to configure some extension, which is called "graphlog" |
113 |
and provides the "glog" command: |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
114 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
115 |
[extensions] |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
116 |
hgext.graphlog = |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
117 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
118 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
119 |
Shared pull/push access |
29481 | 120 |
----------------------- |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
121 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
122 |
The entry point http://isabelle.in.tum.de/repos/isabelle is world |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
123 |
readable, both via plain web browsing and the hg client as described |
40601 | 124 |
above. Anybody can produce a clone, change it locally, and then use |
125 |
regular mechanisms of Mercurial to report changes upstream, say via |
|
126 |
mail to someone with write access to that file space. It is also |
|
127 |
quite easy to publish changed clones again on the web, using the |
|
128 |
ad-hoc command "hg serve -v", or the hgweb.cgi or hgwebdir.cgi scripts |
|
129 |
that are included in the Mercurial distribution, and send a "pull |
|
130 |
request" to someone else. There are also public hosting services for |
|
131 |
Mercurial repositories. |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
132 |
|
28913 | 133 |
The downstream/upstream mode of operation is quite common in the |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
134 |
distributed version control community, and works well for occasional |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
135 |
changes produced by anybody out there. Of course, upstream |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
136 |
maintainers need to review and moderate changes being proposed, before |
40601 | 137 |
pushing anything onto the official Isabelle repository at TUM. Direct |
138 |
pushes are also reviewed routinely in a post-hoc fashion; everybody |
|
139 |
hooked on the main repository is called to keep an eye on incoming |
|
140 |
changes. In any case, changesets need to be understandable, at the |
|
141 |
time of writing and many years later. |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
142 |
|
40601 | 143 |
Push access to the Isabelle repository requires an account at TUM, |
47449 | 144 |
with properly configured ssh to the local machines (e.g. macbroy20 .. |
145 |
macbroy29). You also need to be a member of the "isabelle" Unix |
|
40601 | 146 |
group. |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
147 |
|
28913 | 148 |
Sharing a locally modified clone then works as follows, using your |
149 |
user name instead of "wenzelm": |
|
150 |
||
47449 | 151 |
hg out ssh://wenzelm@macbroy20//home/isabelle-repository/repos/isabelle |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
152 |
|
28913 | 153 |
In fact, the "out" or "outgoing" command performs only a dry run: it |
154 |
displays the changesets that would get published. An actual "push", |
|
155 |
with a lasting effect on the Isabelle repository, works like this: |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
156 |
|
47449 | 157 |
hg push ssh://wenzelm@macbroy20//home/isabelle-repository/repos/isabelle |
28913 | 158 |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
159 |
|
40601 | 160 |
Default paths for push and pull can be configured in |
161 |
isabelle/.hg/hgrc, for example: |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
162 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
163 |
[paths] |
47449 | 164 |
default = ssh://wenzelm@macbroy20//home/isabelle-repository/repos/isabelle |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
165 |
|
28913 | 166 |
Now "hg pull" or "hg push" will use that shared file space, unless a |
167 |
different URL is specified explicitly. |
|
168 |
||
169 |
When cloning a repository, the default path is set to the initial |
|
170 |
source URL. So we could have cloned via that ssh URL in the first |
|
171 |
place, to get exactly to the same point: |
|
172 |
||
47449 | 173 |
hg clone ssh://wenzelm@macbroy20//home/isabelle-repository/repos/isabelle |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
174 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
175 |
|
40601 | 176 |
Simple merges |
177 |
------------- |
|
30182 | 178 |
|
179 |
The main idea of Mercurial is to let individual users produce |
|
180 |
independent branches of development first, but merge with others |
|
181 |
frequently. The basic hg merge operation is more general than |
|
182 |
required for the mode of operation with a shared pull/push area. The |
|
40601 | 183 |
"fetch" extension accommodates this case nicely, automating trivial |
30182 | 184 |
merges and requiring manual intervention for actual conflicts only. |
185 |
||
40601 | 186 |
The fetch extension can be configured via $HOME/.hgrc like this: |
30182 | 187 |
|
188 |
[extensions] |
|
189 |
hgext.fetch = |
|
190 |
||
191 |
[defaults] |
|
192 |
fetch = -m "merged" |
|
193 |
||
40601 | 194 |
To keep merges semantically trivial and prevent genuine merge |
195 |
conflicts or lost updates, it is essential to observe to following |
|
196 |
general discipline wrt. the public Isabelle push area: |
|
197 |
||
198 |
* Before editing, pull or fetch the latest version. |
|
199 |
||
200 |
* Accumulate private commits for a maximum of 1-3 days. |
|
201 |
||
202 |
* Start publishing again by pull or fetch, which normally produces |
|
203 |
local merges. |
|
204 |
||
50281
cbba16084784
further update and clarification of the all-important README_REPOSITORY;
wenzelm
parents:
49443
diff
changeset
|
205 |
* Test the merged result, e.g. like this: |
cbba16084784
further update and clarification of the all-important README_REPOSITORY;
wenzelm
parents:
49443
diff
changeset
|
206 |
|
cbba16084784
further update and clarification of the all-important README_REPOSITORY;
wenzelm
parents:
49443
diff
changeset
|
207 |
isabelle build -a |
cbba16084784
further update and clarification of the all-important README_REPOSITORY;
wenzelm
parents:
49443
diff
changeset
|
208 |
|
cbba16084784
further update and clarification of the all-important README_REPOSITORY;
wenzelm
parents:
49443
diff
changeset
|
209 |
* Push back in real time. |
40601 | 210 |
|
211 |
Piling private changes and public merges longer than 0.5-2 hours is |
|
212 |
apt to produce some mess when pushing eventually! |
|
30182 | 213 |
|
50281
cbba16084784
further update and clarification of the all-important README_REPOSITORY;
wenzelm
parents:
49443
diff
changeset
|
214 |
The pull-test-push cycle should not be repeated too fast, to avoid |
cbba16084784
further update and clarification of the all-important README_REPOSITORY;
wenzelm
parents:
49443
diff
changeset
|
215 |
delaying others from doing the same concurrently. |
cbba16084784
further update and clarification of the all-important README_REPOSITORY;
wenzelm
parents:
49443
diff
changeset
|
216 |
|
30182 | 217 |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
218 |
Content discipline |
29481 | 219 |
------------------ |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
220 |
|
40601 | 221 |
The following principles should be kept in mind when producing |
222 |
changesets that are meant to be published at some point. |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
223 |
|
40601 | 224 |
* The author of changes needs to be properly identified, using |
225 |
[ui]username configuration as described above. |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
226 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
227 |
While Mercurial also provides means for signed changesets, we want |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
228 |
to keep things simple and trust that users specify their identity |
40601 | 229 |
correctly (and uniquely). |
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
230 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
231 |
* The history of sources is an integral part of the sources |
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
232 |
themselves. This means that private experiments and branches |
40601 | 233 |
should not be published by accident. Named branches are not |
234 |
allowed on the public version. Note that old SVN-style branching |
|
235 |
is replaced by regular repository clones in Mercurial. |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
236 |
|
40601 | 237 |
Exchanging local experiments with some other users can be done |
238 |
directly on peer-to-peer basis, without affecting the central |
|
239 |
pull/push area. |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
240 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
241 |
* Log messages are an integral part of the history of sources. |
40601 | 242 |
Other people will have to inspect them routinely, to understand |
243 |
why things have been done in a certain way at some point. |
|
244 |
||
245 |
Authors of log entries should be aware that published changes are |
|
246 |
actually read. The main point is not to announce novelties, but |
|
247 |
to describe faithfully what has been done, and provide some clues |
|
248 |
about the motivation behind it. The main recipient is someone who |
|
249 |
needs to understand the change in the distant future to isolate |
|
250 |
problems. Sometimes it is helpful to reference past changes via |
|
251 |
changeset ids in the log entry. |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
252 |
|
40601 | 253 |
* The standard changelog entry format of the Isabelle repository |
254 |
admits several (vaguely related) items to be rolled into one |
|
255 |
changeset. Each item is then described on a separate line that |
|
256 |
may become longer as screen line and is terminated by punctuation. |
|
257 |
These lines are roughly ordered by importance. |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
258 |
|
40601 | 259 |
This format conforms to established Isabelle tradition. In |
260 |
contrast, the default of Mercurial prefers a single headline |
|
261 |
followed by a long body text. The reason for that is a somewhat |
|
262 |
different development model of typical "distributed" projects, |
|
263 |
where external changes pass through a hierarchy of reviewers and |
|
264 |
maintainers, until they end up in some authoritative repository. |
|
265 |
Isabelle changesets can be more spontaneous, growing from the |
|
266 |
bottom-up. |
|
267 |
||
268 |
The web style of http://isabelle.in.tum.de/repos/isabelle/ |
|
269 |
accommodates the Isabelle changelog format. Note that multiple |
|
270 |
lines will sometimes display as a single paragraph in HTML, so |
|
271 |
some terminating punctuation is required. Do not squeeze multiple |
|
272 |
items on the same line in the original text! |
|
28907
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
273 |
|
1a470f95ef18
Important notes on Mercurial repository access for Isabelle.
wenzelm
parents:
diff
changeset
|
274 |
|
32361
141e5151b918
clarified situation about unidentified repository versions -- in a distributed setting there is not "the" repository;
wenzelm
parents:
30182
diff
changeset
|
275 |
Building a repository version of Isabelle |
141e5151b918
clarified situation about unidentified repository versions -- in a distributed setting there is not "the" repository;
wenzelm
parents:
30182
diff
changeset
|
276 |
----------------------------------------- |
28908 | 277 |
|
48986
037d32448e29
update on "isabelle build" and "isabelle build_doc";
wenzelm
parents:
48855
diff
changeset
|
278 |
This first requires to resolve add-on components first, including the |
037d32448e29
update on "isabelle build" and "isabelle build_doc";
wenzelm
parents:
48855
diff
changeset
|
279 |
ML system. Some extra configuration is required to approximate some |
037d32448e29
update on "isabelle build" and "isabelle build_doc";
wenzelm
parents:
48855
diff
changeset
|
280 |
of the system integration of official Isabelle releases from a |
037d32448e29
update on "isabelle build" and "isabelle build_doc";
wenzelm
parents:
48855
diff
changeset
|
281 |
bare-bones repository snapshot. The special directory Admin/ -- which |
037d32448e29
update on "isabelle build" and "isabelle build_doc";
wenzelm
parents:
48855
diff
changeset
|
282 |
is absent in official releases -- might provide some further clues. |
48497
ba61aceaa18a
some updates on "Building a repository version of Isabelle";
wenzelm
parents:
47449
diff
changeset
|
283 |
|
48844 | 284 |
Here is a reasonably easy way to include important Isabelle components |
285 |
on the spot: |
|
286 |
||
48854 | 287 |
(1) The bash script ISABELLE_HOME_USER/etc/settings is augmented by |
48844 | 288 |
some shell function invocations like this: |
28908 | 289 |
|
48844 | 290 |
init_components "$HOME/.isabelle/contrib" "$ISABELLE_HOME/Admin/components/main" |
291 |
init_components "$HOME/.isabelle/contrib" "$ISABELLE_HOME/Admin/components/optional" |
|
292 |
||
293 |
This uses some central place "$HOME/.isabelle/contrib" to keep |
|
294 |
component directories that are shared by all Isabelle versions. |
|
295 |
||
296 |
(2) Missing components are resolved on the command line like this: |
|
48497
ba61aceaa18a
some updates on "Building a repository version of Isabelle";
wenzelm
parents:
47449
diff
changeset
|
297 |
|
48844 | 298 |
isabelle components -a |
299 |
||
300 |
This will saturate the "$HOME/.isabelle/contrib" directory structure |
|
48855 | 301 |
according to $ISABELLE_COMPONENT_REPOSITORY. |
48497
ba61aceaa18a
some updates on "Building a repository version of Isabelle";
wenzelm
parents:
47449
diff
changeset
|
302 |
|
48844 | 303 |
Since the given component catalogs in $ISABELLE_HOME/Admin/components |
304 |
are subject to the Mercurial history, it is possible to bisect over a |
|
305 |
range of Isabelle versions while references to the contributing |
|
306 |
components change accordingly. |
|
48986
037d32448e29
update on "isabelle build" and "isabelle build_doc";
wenzelm
parents:
48855
diff
changeset
|
307 |
|
037d32448e29
update on "isabelle build" and "isabelle build_doc";
wenzelm
parents:
48855
diff
changeset
|
308 |
The Isabelle build process is managed as follows: |
037d32448e29
update on "isabelle build" and "isabelle build_doc";
wenzelm
parents:
48855
diff
changeset
|
309 |
|
50575 | 310 |
* regular "isabelle build" to build session images, for example: |
311 |
||
312 |
isabelle build -b HOL |
|
48986
037d32448e29
update on "isabelle build" and "isabelle build_doc";
wenzelm
parents:
48855
diff
changeset
|
313 |
|
037d32448e29
update on "isabelle build" and "isabelle build_doc";
wenzelm
parents:
48855
diff
changeset
|
314 |
* administrative "isabelle build_doc" to populate the doc/ |
50575 | 315 |
directory, such that "isabelle doc" will find the results, for example: |
316 |
||
317 |
isabelle build_doc IsarRef |
|
318 |