![]()
|
Creating Packages with install.rb/setup.rbinstall.rb -- the Single Package Installerinstall.rb can handle one set of ruby scripts, ruby extentions, commands, and data file. Call them a "package". install.rb requires that the archive is structured like this:
Each file/directories acts as below:
setup.rb -- the Multiple Package Installersetup.rb can handle an archive which includes multiple packages. "package" means a set of install.rb's archive. setup.rb requires this type of structure:
Hooking Tasks
You can hook any tasks, such as "config" "setup".
For example, you want to make some files in
This file is evaluated on task "setup" in the directory, before processing any other thing. Acceptable hook file name is:
[NOTE] You can also put hook files in the top directory of archive
and/or the type-root directory ( srcdir/objdir supportinstall.rb/setup.rb supports srcdir/objdir. In other words, you can compile everything out of the source directory. If you write hooks, you should supports srcdir/objdir system. When you read source code, read it from srcdir. When you write anything, write it to the current directory. There's also some APIs to help your work. see Hook Script APIs Reference Manual metaconfigYou can add new config entries by writing file "metaconfig". metaconfigs must be placed in the package-root directory. Here is a simple example of metaconfig.
This script defined new config option --libc and --win32.
In LicenseGNU Lesser General Public License (LGPL) version 2. For details, see file "LGPL". NOTE: You CAN distribute your program under the any licenses you like. LGPL does NOT force you to make your programs LGPL if the installer is LGPLed one. Installation ManualYou can freely copy/edit and/or distribute my usage.{txt,html} documents which included in this archive. I do not claim any rights to them. Removing my copyright is also OK. |