Commit Graph

25 Commits

Author SHA1 Message Date
michel-schinz 16714278ce - added "build-clean" phase 2005-08-20 15:45:02 +00:00
michel-schinz 5ebaf0692c - bug fix: when --non-shared-only is specified, only check if the
non-shared part of the package is already present to decide whether
  to install the package or not (reported by Eric Knauel),
- fail with an error if --phases is used but the package requires a
  version older than 1.2.0 of install-lib.
2004-11-13 20:14:57 +00:00
michel-schinz c3a451bea4 - renamed active-phase? to phase-active?
- both --layout and --layout-from now expect a layout specified as a
  Scheme function mapping a package to a layout (the old syntax for
  layouts is not recognised anymore)
2004-11-08 19:56:28 +00:00
michel-schinz 929849b330 - added --version option,
- added --phases option (which subsumes --install-only and
  --build-only),
2004-11-05 18:16:08 +00:00
michel-schinz 2632b372c8 - removed --layout-to,
- factored most of the code shared between program and "standard"
  installers
2004-11-04 14:48:45 +00:00
michel-schinz c1c3d8211e - don't try to install packages which are already installed (provided
the version is the same, of course),
- improved error message when a location isn't found.
2004-07-08 12:15:30 +00:00
michel-schinz 5a2a547ede - --dest-dir is now taken to be a (string) prefix for the files, as
this seems to be what other tools use; consequently, the default
    is now the empty string instead of "/",
- removed re-root-file-name,
- layouts can now be specified as functions in .scsh-pkg-defaults.scm,
- bug fix: textual layouts on the command line now work.
2004-06-13 17:56:13 +00:00
michel-schinz f20724c6ac - added a quiet version of install-main,
- moved version to a separate file,
- minor reformatting to fit code in 80 columns.
2004-05-22 10:43:08 +00:00
michel-schinz 2b825f6d36 - incorporated the rest of Martin's changes: the library can now be
used to install programs (although the internals still have to be
  cleaned, and the new features documented),
2004-05-16 14:33:12 +00:00
michel-schinz 3eee4ba1a8 - permissions can now be specified as a function or an integer
(equivalent to a constant function) everywhere,
- create-directory&parents is now independent from the installation
  library and could be reused in other contexts,
- incorporated first part of Martin's changes, which fix a problem
  with install-string: it now accepts optional permissions, and does
  not create a file in a dry run.
2004-05-12 18:39:04 +00:00
michel-schinz 307a5966c8 - be slightly smarter when checking whether setting SCSH_LIB_DIRS is
required or not (although the current trick doesn't work with
  --dest-dir, but that's a minor detail)
2004-04-01 18:36:43 +00:00
michel-schinz 9fdff3a77c - fixed usage string,
- improved the "use hint" displayed at the end, and moved the code
  producing it to a separate function,
- made "--help" work even when no "pkg-def.scm" file is found.
2004-03-31 19:44:54 +00:00
michel-schinz b2a4c81312 - modified layouts so that scsh's major and minor versions appear
explicitely in all paths,
- check locations given by the package installation script, and fail
  if one is unknown,
- added "install-lib-version" extension, so that package installation
  scripts can explicitely specify which version of install-lib they
  need,
- added a message which is printed at the end of a successful
  installation and indicates how to set SCSH_LIB_DIRS,
- provided a way to "turn off" boolean options like --force, by
  providing an explicit "=no",
- replaced a few calls to "error" by calls to
  "display-error-and-exit", to try to be consistent and use "error"
  only for "internal" errors not due to the end user,
- removed "platform" parameter from layouts, not needed anymore since
  the "lib" location was made platform-independent a long time ago,
- documented --no-user-defaults.
2004-03-14 14:10:25 +00:00
michel-schinz 06427ff520 - added user-specific defaults (stored in file ~/.scsh-pkg-defaults),
- added "exclude" option, to exclude some files,
- parse layouts *after* processing the options,
- changed "display-error-and-exit" to not use "format" anymore.
2004-02-23 20:11:40 +00:00
michel-schinz 47391a548d - added "load-package-in" function, to load sub-packages 2004-02-20 08:22:07 +00:00
michel-schinz 01e77fb69f - added "install-sub-package" function 2004-02-19 07:29:16 +00:00
michel-schinz 87f1a912ff - added "--force" option 2004-02-10 20:25:47 +00:00
michel-schinz cfef23f1b3 Implemented suggestions by Anthony Carrico:
- display an error message when an unknown layout is given,
- the version number in "define-package" is now quasi-quoted,
- added "install-string" to install an arbitrary string in a file,
- forbid relative prefixes.
2004-02-08 09:50:14 +00:00
frese dc75e91598 - fixed a little typo in with-output-to-load-script* 2004-02-01 23:14:39 +00:00
michel-schinz 6687435871 - added with-output-to-load-script(*) and write-to-load-script
functions, which provide support for creating the package-loading
  script,
- added a code template to load libtool's ".la" files, stolen from
  scsh-yp (by Eric Knauel),
- added "--verbose" option,
- preserve permissions of copied files/directories, and use a
  function to obtain permissions for new directories.
2004-02-01 17:22:43 +00:00
frese a4bde841c8 install-thing% must use -create-direcory instead of create-directory 2003-12-22 14:13:13 +00:00
michel-schinz 1e8c345f34 - added support for package-specific command-line options (this
implied a complete rewrite of command-line parsing),
- added "--non-shared-only" option, to install only platform-specific
  files,
- changed option "--install-prefix" to "--dest-dir", and modified its
  behaviour so that it now really behaves like DESTDIR,
- changed the meanining of the "lib" location, which must now contain
  one directory per supported platform,
- added (exported) function "get-option-value" which returns the value
  of a command-line options; this subsumes "is-running-dry?" and
  "with-optional-part?", which were consequently removed,
- commented most functions.
2003-12-21 20:54:23 +00:00
michel-schinz c7eae30444 - added layouts, which means:
- removed query functions, which do not belong to the installation
    library anyway, and which will have to be redone for layouts,
  - replaced functions "package-installation-dir" and
    "package-installation-staging-dir" by "get-directory",
  - changed "install-file" & friends for layouts,
- added "install-directory-contents",
- rewrote option parsing code,
- slightly adapted David Frese's code.
2003-12-14 14:45:20 +00:00
michel-schinz 0d791e3332 Incorporated changes by David Frese:
- added support for optional parts
- added is-running-dry? function
2003-12-14 12:33:59 +00:00
michel-schinz c133705d62 - initial version (no layouts, no support for optional parts) 2003-12-14 12:23:36 +00:00