147 \isamarkupsubsubsection{Examples% |
147 \isamarkupsubsubsection{Examples% |
148 } |
148 } |
149 \isamarkuptrue% |
149 \isamarkuptrue% |
150 % |
150 % |
151 \begin{isamarkuptext}% |
151 \begin{isamarkuptext}% |
152 Get the ML system name and the location where the compiler binaries |
152 Get the location of \hyperlink{setting.ISABELLE-HOME-USER}{\mbox{\isa{\isatt{ISABELLE{\isaliteral{5F}{\isacharunderscore}}HOME{\isaliteral{5F}{\isacharunderscore}}USER}}}} where |
153 are supposed to reside as follows: |
153 user-specific information is stored: |
154 \begin{ttbox} |
154 \begin{ttbox} |
155 isabelle getenv ML_SYSTEM ML_HOME |
155 isabelle getenv ISABELLE_HOME_USER |
156 {\out ML_SYSTEM=polyml} |
156 \end{ttbox} |
157 {\out ML_HOME=/usr/share/polyml/x86-linux} |
157 |
158 \end{ttbox} |
158 \medskip Get the value only of the same settings variable, which is |
159 |
159 particularly useful in shell scripts: |
160 The next one peeks at the output directory for Isabelle logic |
|
161 images: |
|
162 \begin{ttbox} |
160 \begin{ttbox} |
163 isabelle getenv -b ISABELLE_OUTPUT |
161 isabelle getenv -b ISABELLE_OUTPUT |
164 {\out /home/me/isabelle/heaps/polyml_x86-linux} |
162 \end{ttbox}% |
165 \end{ttbox} |
|
166 Here we have used the \verb|-b| option to suppress the |
|
167 \verb|ISABELLE_OUTPUT=| prefix. The value above is what |
|
168 became of the following assignment in the default settings file: |
|
169 \begin{ttbox} |
|
170 ISABELLE_OUTPUT="\$ISABELLE_HOME_USER/heaps" |
|
171 \end{ttbox} |
|
172 |
|
173 Note how the \hyperlink{setting.ML-IDENTIFIER}{\mbox{\isa{\isatt{ML{\isaliteral{5F}{\isacharunderscore}}IDENTIFIER}}}} value got appended |
|
174 automatically to each path component. This is a special feature of |
|
175 \hyperlink{setting.ISABELLE-OUTPUT}{\mbox{\isa{\isatt{ISABELLE{\isaliteral{5F}{\isacharunderscore}}OUTPUT}}}}.% |
|
176 \end{isamarkuptext}% |
163 \end{isamarkuptext}% |
177 \isamarkuptrue% |
164 \isamarkuptrue% |
178 % |
165 % |
179 \isamarkupsection{Installing standalone Isabelle executables \label{sec:tool-install}% |
166 \isamarkupsection{Installing standalone Isabelle executables \label{sec:tool-install}% |
180 } |
167 } |
199 |
186 |
200 The \verb|-d| option overrides the current Isabelle |
187 The \verb|-d| option overrides the current Isabelle |
201 distribution directory as determined by \hyperlink{setting.ISABELLE-HOME}{\mbox{\isa{\isatt{ISABELLE{\isaliteral{5F}{\isacharunderscore}}HOME}}}}. |
188 distribution directory as determined by \hyperlink{setting.ISABELLE-HOME}{\mbox{\isa{\isatt{ISABELLE{\isaliteral{5F}{\isacharunderscore}}HOME}}}}. |
202 |
189 |
203 The \verb|-p| option installs executable wrapper scripts for |
190 The \verb|-p| option installs executable wrapper scripts for |
204 \hyperlink{executable.isabelle-process}{\mbox{\isa{\isatt{isabelle{\isaliteral{2D}{\isacharminus}}process}}}}, \hyperlink{executable.isabelle}{\mbox{\isa{\isatt{isabelle}}}}, |
191 \hyperlink{executable.isabelle-process}{\mbox{\isa{\isatt{isabelle{\isaliteral{2D}{\isacharminus}}process}}}}, \hyperlink{executable.isabelle}{\mbox{\isa{\isatt{isabelle}}}}, containing |
205 \hyperlink{executable.Isabelle}{\mbox{\isa{\isatt{Isabelle}}}}, containing proper absolute references to the |
192 proper absolute references to the Isabelle distribution directory. |
206 Isabelle distribution directory. A typical \verb|DIR| |
193 A typical \verb|DIR| specification would be some directory |
207 specification would be some directory expected to be in the shell's |
194 expected to be in the shell's \hyperlink{setting.PATH}{\mbox{\isa{\isatt{PATH}}}}, such as \verb|$HOME/bin|. |
208 \hyperlink{setting.PATH}{\mbox{\isa{\isatt{PATH}}}}, such as \verb|/usr/local/bin|. It is |
195 |
209 important to note that a plain manual copy of the original Isabelle |
196 It is possible to make symbolic links of the main Isabelle |
210 executables does not work, since it disrupts the integrity of the |
197 executables, but making separate copies outside the Isabelle |
211 Isabelle distribution.% |
198 distribution directory will not work.% |
212 \end{isamarkuptext}% |
199 \end{isamarkuptext}% |
213 \isamarkuptrue% |
200 \isamarkuptrue% |
214 % |
201 % |
215 \isamarkupsection{Creating instances of the Isabelle logo% |
202 \isamarkupsection{Creating instances of the Isabelle logo% |
216 } |
203 } |