Home » PEAR » PEAR » Bug #7275
Add config file option to PEAR Installer
Details
| Request #7275 | Add config file option to PEAR Installer |
|---|---|
| Submitted | 2006-04-02 00:48 UTC |
| From | matt dot friedman at gmail dot com |
| Status | Bogus |
| Package | PEAR |
| PHP Version | Irrelevant |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2006-04-02 00:48 UTC] matt dot friedman at gmail dot com
Description:
------------
It would be very useful if the PEAR installer allowed a config file to be used to specify the various options that are currently specified via user input. Therefore, this option could be used to eliminate user interaction in favour of fully automated builds.
I suggest the config file could be an ini file with simple keys and values. One would pass the path to the config file on the command line when running the go-pear script. The config file could look something like:
skip_abort_step = true
http_proxy = none
install_prefix = /home/me/pear
bin_dir = bin ;relative to install_prefix or full path
php_dir = lib/php
doc_dir = docs
data_dir = data
test_dir = tests
bundled_packages = yes
modify_ini = no
and so on...
Then, one could run the installer by typing (for example):
> php go-pear -config-file myPearInstallConfig.ini
This would be a major help when it comes to making automated build scripts.
Thanks,
Matt.