/usr/share/doc/racket/plt-installer/index.html is in racket-doc 6.1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>GUI ".plt" Installer</title><link rel="stylesheet" type="text/css" href="../scribble.css" title="default"/><link rel="stylesheet" type="text/css" href="../racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-style.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../doc-site.css" title="default"/><script type="text/javascript" src="../scribble-common.js"></script><script type="text/javascript" src="../manual-racket.js"></script><script type="text/javascript" src="../manual-racket.js"></script><script type="text/javascript" src="../doc-site.js"></script><script type="text/javascript" src="../local-redirect/local-redirect.js"></script><script type="text/javascript" src="../local-redirect/local-user-redirect.js"></script><!--[if IE 6]><style type="text/css">.SIEHidden { overflow: hidden; }</style><![endif]--></head><body id="doc-racket-lang-org"><div class="tocset"><div class="tocview"><div class="tocviewlist tocviewlisttopspace"><div class="tocviewtitle"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,"tocview_0");">►</a></td><td></td><td><a href="" class="tocviewselflink" data-pltdoc="x">GUI <span class="stt">".plt"</span> Installer</a></td></tr></table></div><div class="tocviewsublistonly" style="display: none;" id="tocview_0"><table cellspacing="0" cellpadding="0"><tr><td align="right">1 </td><td><a href="#%28part._.G.U.I_.Unpacking_.Signature%29" class="tocviewlink" data-pltdoc="x">GUI Unpacking Signature</a></td></tr><tr><td align="right">2 </td><td><a href="#%28part._.G.U.I_.Unpacking_.Unit%29" class="tocviewlink" data-pltdoc="x">GUI Unpacking Unit</a></td></tr></table></div></div></div><div class="tocsub"><table class="tocsublist" cellspacing="0"><tr><td><span class="tocsublinknumber"></span><a href="#%28part._top%29" class="tocsubseclink" data-pltdoc="x">GUI <span class="stt">".plt"</span> Installer</a></td></tr><tr><td><a href="#%28def._%28%28lib._setup%2Fplt-installer..rkt%29._run-installer%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">run-<wbr></wbr>installer</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._setup%2Fplt-installer..rkt%29._on-installer-run%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">on-<wbr></wbr>installer-<wbr></wbr>run</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._setup%2Fplt-installer..rkt%29._with-installer-window%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">with-<wbr></wbr>installer-<wbr></wbr>window</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._setup%2Fplt-installer..rkt%29._run-single-installer%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">run-<wbr></wbr>single-<wbr></wbr>installer</span></span></a></td></tr><tr><td><span class="tocsublinknumber">1<tt> </tt></span><a href="#%28part._.G.U.I_.Unpacking_.Signature%29" class="tocsubseclink" data-pltdoc="x">GUI Unpacking Signature</a></td></tr><tr><td><a href="#%28form._%28%28lib._setup%2Fplt-installer-sig..rkt%29._setup~3aplt-installer~5e%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktStxLink">setup:<span class="mywbr"> </span>plt-<wbr></wbr>installer^</span></span></a></td></tr><tr><td><span class="tocsublinknumber">2<tt> </tt></span><a href="#%28part._.G.U.I_.Unpacking_.Unit%29" class="tocsubseclink" data-pltdoc="x">GUI Unpacking Unit</a></td></tr></table></div></div><div class="maincolumn"><div class="main"><div class="versionbox"><span class="version">6.1</span></div><div class="navsettop"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, "6.1", "../");" onfocus="this.style.color="black"; this.style.textAlign="left"; if (this.value == "...search manuals...") this.value="";" onblur="if (this.value.match(/^ *$/)) { this.style.color="#888"; this.style.textAlign="center"; this.value="...search manuals..."; }"/></form> <a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot("6.1");">top</a></span><span class="navright"> <span class="nonavigation">← prev</span> <a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot("6.1");">up</a> <span class="nonavigation">next →</span></span> </div><h2 x-source-module="(lib "setup/plt-installer.scrbl")" x-part-tag=""top""><a name="(part._top)"></a><a name="(part._gui-unpacking)"></a><a name="(mod-path._setup/plt-installer)"></a>GUI <span class="stt">".plt"</span> Installer</h2><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="defmodule"><tr><td align="left"><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=require.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._require%2529%2529&version=6.1" class="RktStxLink Sq" data-pltdoc="x">require</a></span><span class="stt"> </span><a href="" class="RktModLink" data-pltdoc="x"><span class="RktSym">setup/plt-installer</span></a><span class="RktPn">)</span></td><td align="right"><span class="RpackageSpec"><span class="Smaller"> package:</span> <span class="stt">drracket</span></span></td></tr></table></div><div class="SIntrapara"> The
<a href="" class="RktModLink" data-pltdoc="x"><span class="RktSym">setup/plt-installer</span></a> library in the setup collection
defines procedures for installing a <span class="stt">".plt"</span> archive with a
GUI (using the facilities of <a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=gui&rel=index.html&version=6.1" class="RktModLink Sq" data-pltdoc="x"><span class="RktSym">racket/gui/base</span></a>).</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._setup/plt-installer..rkt)._run-installer))"></a><span title="Provided from: setup/plt-installer | Package: drracket"><span class="RktSym"><a href="#%28def._%28%28lib._setup%2Fplt-installer..rkt%29._run-installer%29%29" class="RktValDef RktValLink" data-pltdoc="x">run-installer</a></span></span><span class="hspace"> </span><span class="RktVar">filename</span><span class="RktPn">)</span><span class="hspace"> </span>→<span class="hspace"> </span><span class="RktSym">void?</span></p></blockquote></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">filename</span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktSym">path-string?</span></td></tr></table></blockquote></div><div class="SIntrapara">Run the installer on the <span class="stt">".plt"</span> file
in <span class="RktVar">filename</span> and show the output in a window. This is a
composition of <span class="RktSym"><a href="#%28def._%28%28lib._setup%2Fplt-installer..rkt%29._with-installer-window%29%29" class="RktValLink" data-pltdoc="x">with-installer-window</a></span> and
<span class="RktSym"><a href="#%28def._%28%28lib._setup%2Fplt-installer..rkt%29._run-single-installer%29%29" class="RktValLink" data-pltdoc="x">run-single-installer</a></span> with a <span class="RktSym">get-dir-proc</span> that prompts
the user for a directory (turning off the busy cursor while the dialog
is active).</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>parameter</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._setup/plt-installer..rkt)._on-installer-run))"></a><span title="Provided from: setup/plt-installer | Package: drracket"><span class="RktSym"><a href="#%28def._%28%28lib._setup%2Fplt-installer..rkt%29._on-installer-run%29%29" class="RktValDef RktValLink" data-pltdoc="x">on-installer-run</a></span></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace"> </span>→<span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="nobreak">-></span></span><span class="hspace"> </span><span class="RktSym">any</span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><span class="RktPn">(</span><span title="Provided from: setup/plt-installer | Package: drracket"><span class="RktSym"><a href="#%28def._%28%28lib._setup%2Fplt-installer..rkt%29._on-installer-run%29%29" class="RktValDef RktValLink" data-pltdoc="x">on-installer-run</a></span></span><span class="hspace"> </span><span class="RktVar">thunk</span><span class="RktPn">)</span><span class="hspace"> </span>→<span class="hspace"> </span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&version=6.1" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">thunk</span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="nobreak">-></span></span><span class="hspace"> </span><span class="RktSym">any</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">A thunk that is run after a <span class="stt">".plt"</span> file is installed.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td><span class="RktPn">(</span><a name="(def._((lib._setup/plt-installer..rkt)._with-installer-window))"></a><span title="Provided from: setup/plt-installer | Package: drracket"><span class="RktSym"><a href="#%28def._%28%28lib._setup%2Fplt-installer..rkt%29._with-installer-window%29%29" class="RktValDef RktValLink" data-pltdoc="x">with-installer-window</a></span></span></td><td><span class="hspace"> </span></td><td><span class="RktVar">do-install</span></td><td><span class="hspace"> </span></td><td><span class="hspace"> </span></td><td><span class="hspace"> </span></td><td><span class="hspace"> </span></td></tr><tr><td><span class="hspace"> </span></td><td><span class="hspace"> </span></td><td><span class="RktVar">cleanup-thunk</span><span class="RktPn">)</span></td><td><span class="hspace"> </span></td><td>→</td><td><span class="hspace"> </span></td><td><span class="RktSym">void?</span></td></tr></table></blockquote></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="argcontract"><tr><td><span class="hspace"> </span></td><td><span class="RktVar">do-install</span></td><td><span class="hspace"> </span></td><td>:</td><td><span class="hspace"> </span></td><td><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="nobreak">-></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">or/c</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace"> </span><span class="RktSym">dialog%</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace"> </span><span class="RktSym">frame%</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktSym">void?</span><span class="RktPn">)</span></td></tr></table></td></tr></table></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">cleanup-thunk</span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="nobreak">-></span></span><span class="hspace"> </span><span class="RktSym">any</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Equivalent to
</div><div class="SIntrapara"><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">define</span><span class="hspace"> </span><span class="RktSym">installer-run</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="#%28def._%28%28lib._setup%2Fplt-installer..rkt%29._on-installer-run%29%29" class="RktValLink" data-pltdoc="x">on-installer-run</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym">parameterize</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">[</span><span class="RktSym">on-terminal-run</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">λ</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">printf</span><span class="hspace"> </span><span class="RktVal">"\nInstallation complete.\n"</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">installer-run</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">]</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">in-terminal</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">λ</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">custodian</span><span class="hspace"> </span><span class="RktSym">tlw</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktVar">do-install</span><span class="hspace"> </span><span class="RktSym">tlw</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">#:title</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">string-constant</span><span class="hspace"> </span><span class="RktSym">plt-installer-progress-window-title</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">#:cleanup-thunk</span><span class="hspace"> </span><span class="RktVar">cleanup-thunk</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote></div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td colspan="3"><span class="RktPn">(</span><a name="(def._((lib._setup/plt-installer..rkt)._run-single-installer))"></a><span title="Provided from: setup/plt-installer | Package: drracket"><span class="RktSym"><a href="#%28def._%28%28lib._setup%2Fplt-installer..rkt%29._run-single-installer%29%29" class="RktValDef RktValLink" data-pltdoc="x">run-single-installer</a></span></span></td><td><span class="hspace"> </span></td></tr><tr><td><span class="hspace"> </span></td><td><span class="hspace"> </span></td><td><span class="RktVar">file</span></td><td><span class="hspace"> </span></td></tr><tr><td><span class="hspace"> </span></td><td><span class="hspace"> </span></td><td><span class="RktVar">get-dir-proc</span></td><td><span class="hspace"> </span></td></tr><tr><td><span class="hspace"> </span></td><td><span class="hspace"> </span>[</td><td><span class="RktPn">#:show-beginning-of-file?</span><span class="hspace"> </span><span class="RktVar">show-beginning-of-file?</span>]<span class="RktPn">)</span></td><td><span class="hspace"> </span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace"> </span>→<span class="hspace"> </span><span class="RktSym">void?</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">file</span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktSym">path-string?</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">get-dir-proc</span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="nobreak">-></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">or/c</span><span class="hspace"> </span><span class="RktSym">path-string?</span><span class="hspace"> </span><span class="RktVal">#f</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">show-beginning-of-file?</span><span class="hspace"> </span>:<span class="hspace"> </span><span class="RktSym">any/c</span><span class="hspace"> </span>=<span class="hspace"> </span><span class="RktVal">#f</span></td></tr></table></blockquote></div><div class="SIntrapara">The same as the export from <a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=raco&rel=_plt-archives.html%23%2528mod-path._setup%252Fplt-single-installer%2529&version=6.1" class="RktModLink Sq" data-pltdoc="x"><span class="RktSym">setup/plt-single-installer</span></a>,
but with a GUI.</div></p><h3 x-source-module="(lib "setup/plt-installer.scrbl")" x-part-tag=""GUI_Unpacking_Signature"">1<tt> </tt><a name="(part._.G.U.I_.Unpacking_.Signature)"></a><a name="(mod-path._setup/plt-installer-sig)"></a>GUI Unpacking Signature</h3><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="defmodule"><tr><td align="left"><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=require.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._require%2529%2529&version=6.1" class="RktStxLink Sq" data-pltdoc="x">require</a></span><span class="stt"> </span><a href="#%28mod-path._setup%2Fplt-installer-sig%29" class="RktModLink" data-pltdoc="x"><span class="RktSym">setup/plt-installer-sig</span></a><span class="RktPn">)</span></td><td align="right"><span class="RpackageSpec"><span class="Smaller"> package:</span> <span class="stt">drracket</span></span></td></tr></table></div><div class="SIntrapara"><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>signature</p></div></div><p class="RForeground"><a name="(form._((lib._setup/plt-installer-sig..rkt)._setup~3aplt-installer~5e))"></a><span title="Provided from: setup/plt-installer-sig | Package: drracket"><span class="RktSym"><a href="#%28form._%28%28lib._setup%2Fplt-installer-sig..rkt%29._setup~3aplt-installer~5e%29%29" class="RktStxDef RktStxLink" data-pltdoc="x">setup:plt-installer^</a></span></span><span class="hspace"> </span>:<span class="hspace"> </span>signature</p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara"><blockquote class="leftindent"><p>Provides two names: <span class="RktSym"><a href="#%28def._%28%28lib._setup%2Fplt-installer..rkt%29._run-installer%29%29" class="RktValLink" data-pltdoc="x">run-installer</a></span> and <span class="RktSym"><a href="#%28def._%28%28lib._setup%2Fplt-installer..rkt%29._on-installer-run%29%29" class="RktValLink" data-pltdoc="x">on-installer-run</a></span>.</p></blockquote></div></p></div></p><h3 x-source-module="(lib "setup/plt-installer.scrbl")" x-part-tag=""GUI_Unpacking_Unit"">2<tt> </tt><a name="(part._.G.U.I_.Unpacking_.Unit)"></a><a name="(mod-path._setup/plt-installer-unit)"></a>GUI Unpacking Unit</h3><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="defmodule"><tr><td align="left"><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=require.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._require%2529%2529&version=6.1" class="RktStxLink Sq" data-pltdoc="x">require</a></span><span class="stt"> </span><a href="#%28mod-path._setup%2Fplt-installer-unit%29" class="RktModLink" data-pltdoc="x"><span class="RktSym">setup/plt-installer-unit</span></a><span class="RktPn">)</span></td><td align="right"><span class="RpackageSpec"><span class="Smaller"> package:</span> <span class="stt">drracket</span></span></td></tr></table></div><div class="SIntrapara">Imports <span class="RktSym">mred^</span> and exports <span class="RktSym"><a href="#%28form._%28%28lib._setup%2Fplt-installer-sig..rkt%29._setup~3aplt-installer~5e%29%29" class="RktStxLink" data-pltdoc="x">setup:plt-installer^</a></span>. </div></p><div class="navsetbottom"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, "6.1", "../");" onfocus="this.style.color="black"; this.style.textAlign="left"; if (this.value == "...search manuals...") this.value="";" onblur="if (this.value.match(/^ *$/)) { this.style.color="#888"; this.style.textAlign="center"; this.value="...search manuals..."; }"/></form> <a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot("6.1");">top</a></span><span class="navright"> <span class="nonavigation">← prev</span> <a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot("6.1");">up</a> <span class="nonavigation">next →</span></span> </div></div></div><div id="contextindicator"> </div></body></html>
|