First-setup

From Wiki
Revision as of 18:30, 12 July 2012 by Esteis (talk | contribs) (Created page with "{{code|first-setup.sh}} or {{code|first-setup.bat}} is the script used to install and update ConTeXt. You can keep separate ConTeXt installations under separate directories, whic...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

first-setup.sh or first-setup.bat is the script used to install and update ConTeXt. You can keep separate ConTeXt installations under separate directories, which is useful when, for example, you want to run both a stable and a. The script is a wrapper around mtxrun with mtx-update.lua as a helper script, both in the bin directory directly under the installation root.

To obtain the first-setup.sh script and/or update it:

   cd /opt/context
   rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh ./
   # optional: make it executable.
   # chmod +x first-setup.sh

To install or update ConTeXt:

   sh ./first-setup.sh   # defaults to --context=beta
   sh ./first-setup.sh --context=beta      # latest beta
   sh ./first-setup.sh --context=current   # current stable version
   sh ./first-setup.sh --context=date      # date-specific version

To install only Mark IV:

   sh ./first-setup.sh --engine=luatex

To install a module, multiple modules, or all modules:

   sh ./first-setup.sh --modules="t-letter"
   sh ./first-setup.sh --modules="t-letter,t-mathsets"
   sh ./first-setup.sh --modules=all

To update ConTeXt, retaining currently-installed modules:

   sh ./first-setup.sh --keep