The Autopackage API |
Table of Contents / Public library / Checking and Installation |
Checking and installation functions.
checkDiskSpace | <NEEDED> <LOCATION> |
testForLib | [-v] LibraryName |
scanLDLibPath | Library |
installBin | FILES |
installLib | LIBRARIES |
installDesktop | <CATEGORY> <FILES> |
installInfo | FILES |
installMan | SECTION FILES |
installIcon | <FILES> |
installIconTheme | <NAME> <FILES> |
installSound | <FILES> |
checkDiskSpace | ||||||
Syntax: checkDiskSpace <NEEDED> <LOCATION> | ||||||
Check for free diskspace in LOCATION. | ||||||
| ||||||
Example:# Check whether /tmp has at least 1392003 bytes of free disk space checkDiskSpace 1392003 "/tmp" |
testForLib | ||||||||
Syntax: testForLib [-v] LibraryName | ||||||||
Check for the existance of a library. | ||||||||
|
scanLDLibPath | ||||
Syntax: scanLDLibPath Library | ||||
Scan $LD_LIBRARY_PATH for Library. | ||||
| ||||
Example:export LD_LIBRARY_PATH=/home/mike/garnome/lib scanLDLibPath libglib.so # Outputs matches for example: # /home/mike/garnome/lib/libglib-2.0.so # /home/mike/garnome/lib/libglib-2.0.so.0 # /home/mike/garnome/lib/libglib-2.0.so.0.200.0 |
installBin | ||
Syntax: installBin FILES | ||
Install binaries. $PATH will be automatically updated. | ||
|
installLib | ||
Syntax: installLib LIBRARIES | ||
Install shared libraries (.so). The linker search path will be automatically updated. | ||
|
installDesktop | ||||
Syntax: installDesktop <CATEGORY> <FILES> | ||||
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 | ||
Install .info files. | ||
|
installMan | ||||
Syntax: installMan SECTION FILES | ||||
Install Unix manual pages. The manpage search path will be automatically updated. | ||||
|
installIcon | ||
Syntax: installIcon <FILES> | ||
Install files to proper desktop icon directory. | ||
|
installIconTheme | ||||
Syntax: installIconTheme <NAME> <FILES> | ||||
Install files to proper desktop icon theme directory. | ||||
| ||||
Example:installIconTheme "artdeco" ./share/icons/artdeco |
installSound | ||
Syntax: installSound <FILES> | ||
Install files to proper desktop sound directory. | ||
| ||
Example:installSound ./share/sounds |