The Autopackage API

Table of Contents / Public library / Installation

Installation

Install/uninstall script functions.

Subcategories

Functions in this category

copyFiles<SOURCES> <DESTINATION DIRECTORY>
updateEnv[--append] <VARIABLE> <PATH>
installExe<FILES>
installLib<LIBRARIES>
installDesktop<CATEGORY> <FILES>
installInfo<FILES>
installMan<SECTION> <FILES>
installIcon<FILES>
installIconTheme<NAME> <FILES>
installSound<FILES>


Details

copyFiles
Syntax: copyFiles <SOURCES> <DESTINATION DIRECTORY>
SOURCES: One or more files to copy.
DESTINATION DIRECTORY: The directory to copy the source files to.
Copy one or more files to DESTINATION DIRECTORY. These files are logged in the uninstall log and will be automatically removed at uninstall.
Example:
copyFiles hello.txt world.txt "$prefix/doc"


updateEnv
Syntax: updateEnv [--append] <VARIABLE> <PATH>
--append: Append the value to the variable instead of prepending it.
VARIABLE: The environment variable to set.
PATH: The path to add to it.
Prepends a path to an environment variable and add a command in the logfile to remove it if needed at uninstall. The modifications to the environment variables will be saved in various shell startup scripts.


installExe
Syntax: installExe <FILES>
FILES: The binaries or scripts to install.
Installs any executable file. $PATH will be automatically updated if the installation location is not currently in it.


installLib
Syntax: installLib <LIBRARIES>
LIBRARIES: The libraries to install.
Install shared libraries (.so). The linker search path will be automatically updated.


installDesktop
Syntax: installDesktop <CATEGORY> <FILES>
FILES: The desktop entries to install.
CATEGORY: The category the desktop entries belong to.
Install a desktop entry (.desktop file). This function will automatically detect GNOME and KDE and will copy the desktop entires to the proper locations.


installInfo
Syntax: installInfo <FILES>
FILES: The .info file(s) to install.
Install .info files.


installMan
Syntax: installMan <SECTION> <FILES>
FILES: The manpages to install.
SECTION: The section these manpages belong to.
Install Unix manual pages. The manpage search path will be automatically updated.


installIcon
Syntax: installIcon <FILES>
FILES: The icon files to install.
Install files to proper desktop icon directory.


installIconTheme
Syntax: installIconTheme <NAME> <FILES>
FILES: The icon theme files to install.
NAME: The name of the icon theme.
Install files to proper desktop icon theme directory.
Example:
installIconTheme "artdeco" ./share/icons/artdeco


installSound
Syntax: installSound <FILES>
FILES: The sound files to install.
Install files to proper desktop sound directory.
Example:
installSound ./share/sounds


Last update: 10/6/2003