INSTALL 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. install.sh is a POSIX sh script known to work with the following shells:
  2. ash
  3. dash
  4. bash
  5. loksh
  6. mksh
  7. pdksh
  8. posh (0.14.1 or newer)
  9. oksh
  10. yash
  11. zsh
  12. install.sh accepts the following arguments as targets:
  13. install - Installs the solarus.data archive and executable script.
  14. uninstall - Uninstalls all installed files.
  15. Additionally the following arguments can be passed to the install
  16. and uninstall targets to configure the install paths.
  17. PREFIX - Install path prefix (/usr/local)
  18. BINDIR - Binary install directory (PREFIX/bin)
  19. DOCDIR - Documentation install directory (PREFIX/share/doc)
  20. MANDIR - Manpage install directory (PREFIX/share/man)
  21. DATADIR - Read-only data install directory (DATAROOTDIR)
  22. DATAROOTDIR - Read-only data root install directory (PREFIX/share)
  23. SYSCONFDIR - Read-only data install directory (PREFIX/etc)
  24. The configurable install directories can be either absolute or relative
  25. paths. If they are set as relative paths the value of PREFIX will be
  26. prepended to the install directory. For example if MANDIR is set to
  27. 'man' man pages will be installed to '/usr/local/man/' instead of
  28. '/usr/local/share/man/'.
  29. By design install.sh will not use any set environment variables and all
  30. configuration must be passed explicitly as arguments.
  31. EXAMPLES
  32. ./install.sh install PREFIX=/usr DESTDIR=/tmp
  33. Installs to '/tmp/usr/'.
  34. ./install.sh uninstall PREFIX=/usr DESTDIR=/tmp
  35. Uninstalls from '/tmp/usr/'.
  36. ./install.sh install DOCDIR=/usr/local/doc
  37. Installs documentation to '/usr/local/doc/$PRGNAM-$VERSION'.
  38. ./install.sh install MANDIR=man
  39. Installs man pages to '$PREFIX/man/man1/'.
  40. ./install.sh install SYSCONFDIR=/etc
  41. Installs read-only data to '/etc/'.