GAUCHE-INSTALL(1)
π GAUCHE-INSTALL(1) π
okay so bestie, welcome to the Gauche Commands corner of the manual β this one's gauche-install, and it's genuinely the friend that shows up to help you move.
β¨ NAME β¨
gauche-install β install files and set attributes π«Ά
πΈ SYNOPSIS πΈ
1)* gauche-install [OPTION...] FILE DEST
2)* gauche-install [OPTION...] FILE... DIRECTORY
3)* gauche-install -d [OPTION...] DIRECTORY...
4) gauche-install -T DIRECTORY [OPTION...] FILE...
5) gauche-install -U DIRECTORY [OPTION...] FILE...
π¦ DESCRIPTION π¦
gauche-install is a program to install and remove files. When it installs, it can also set ownership and permissions. No cap β this command is upward compatible with BSD install(1) and can be used as a drop-in replacement for it. And notably? The 1st, 2nd and 3rd command-line formats above are the ones that line up with BSD install.
This command exists mainly so Gauche's extension packages can have a simpler installation and configuration process. Because those packages can just know that gauche-install is available, they don't have to stress about the subtle little differences between all the various install(1) commands out there. iconic behaviour honestly.
- The first format copies
FILEon the file, or into the directory, named byDEST. - The second format copies
FILE ...into the directoryDIRECTORY. - The third format makes sure
DIRECTORYexists. If it doesn't, the command creates the path to theDIRECTORY, including any intermediate ones. - The fourth format installs
FILE ...to theDIRECTORY. It's more convenient than the first and second formats in these regards:- If the destination directory does not exist, it is created (with any intermediate paths as needed).
- The list of files can be empty, so that when the list of installed files can be generated by configuration, you don't need to handle the empty case specially in a Makefile. (With the BSD
installformat, an empty file list yields an error. π) - The directory prefix of files are preserved within the destination directory. This is handy to install a subtree of files. For example, the following command installs
/usr/share/foo/main,/usr/share/foo/conf/xand/usr/share/foo/conf/ywith a single command.
gauche-install -T /usr/share/foo main conf/x conf/y
Giving the -p option suppresses this behavior and strips any directory prefix, like the second format. The following command line installs /usr/share/foo/main, /usr/share/foo/x and /usr/share/foo/y.
gauche-install -T /usr/share/foo -p main conf/x conf/y
- The fifth format removes
FILE ...in theDIRECTORY. Irrelevant options are ignored, so it is handy to uninstall files just by changing-Tin the fourth format to-U. One letter. That's the whole uninstall. obsessed.
π OPTIONS π
-C,--canonical-suffixβ this one is used specially to install Gauche's autogenerated Scheme source by experimental precompilation. The generated file has a*.sci. Upon installation, this command replaces the suffix for*.scm.-d,--directoryβ creates directories. (3rd format only). It is only for the compatibility. Using the-Toption, the destination directories are created automatically if missing.-g,--group=GROUPβ change group of the installed file.-h,--helpβ show summary of options.-m,--mode=MODEβ change mode of the installed file.-n,--dry-runβ just prints what actions to be done.-o,--owner=OWNERβ change owner of the installed file.-p,--strip-prefix=PREFIXβ stripPREFIXdirectories fromFILE(s) before installation. (4th/5th format only).--shebang=PATHβ adds#!PATHbefore the file contents. Useful to install scripts. πβ¨-S,--srcdir=directoryβ look for files withindirectory; useful ifVPATHis used in Makefiles.-T,--target=directoryβ installs files to thedirectory, creating paths if needed. Partial path of files are preserved unless-poption is given. (4th format only)-U,--uninstall=directoryβ reverse of-T, e.g. removes files from its destination. Other options (except-hand-n) are ignored.-v,--verboseβ work verbosely.
π DIAGNOSTICS π
gauche-install exits with status 0 on success. that's it, that's the whole vibe check.
β SEE ALSO β
The program will be documented fully by the Gauche DevelopersΒ΄ Reference available via the info(1) system. π
π AUTHORS π
- Shiro Kawai
<shiro@acm.org>- Author.
- Jens Thiele
<karme@karme.de>- Wrote this manpage for the Debian system.
π COPYRIGHT π
Copyright Β© 2010 Jens Thiele
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.
fr fr on the "without any warranty" part β no take-backsies, bestie.
and that's the whole page, mwah π β this was Gauche 0.9.15-p2, aka the version you're reading about right now. bye bestie, go install something cute π¦
π¦ where this page comes from
- debian trixie: gauche-dev 0.9.15-p2+20241205-4
- ubuntu questing: gauche-dev 0.9.15-p2+20241205-4
- ubuntu resolute: gauche-dev 0.9.15-p2+20241205-4.1
- ubuntu stonking: gauche-dev 0.9.15-p2+20241205-4.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms