Commit Graph

134 Commits

Author SHA1 Message Date
Tomas V.V.Cox
25b78bc5bd Added "pear -V" (show version information) 2002-05-26 19:42:13 +00:00
Stig Bakken
d3926c1e7e * another help fix 2002-05-26 19:19:34 +00:00
Tomas V.V.Cox
f2f69974e9 "Help" fixes 2002-05-26 17:37:52 +00:00
Stig Bakken
f1882b9fc5 * Console_Getopt POSIX fix 2002-05-26 12:51:10 +00:00
Stig Bakken
7ecfacedad * implemented shortcuts ("pv" for "package-validate" etc.)
do "pear help shortcuts" to see what shortcuts exist
* renamed "list-installed" command to "list" and made it able to
  list the contents of installed packages as well as tar/tgz/xml files
* added some more/better command docs
* fixed up the synopsis part in the help output
* display option parameters (--foo=bar, where bar is specified in
  'shortarg' as for example 'f:bar')
* renamed list-remote-packages to list-remote
* renamed remote-package-info to remote-info
2002-05-21 01:27:53 +00:00
Stig Bakken
454a31121c * support multiple -v and -q options 2002-05-20 10:27:16 +00:00
Tomas V.V.Cox
93b603861e Put "pear help options" working again 2002-05-19 15:50:36 +00:00
Tomas V.V.Cox
5ea5758bcf Add "\n" after the error in usage() 2002-05-14 17:58:44 +00:00
Stig Bakken
ed16e64498 * moved the {config xxx} help message substitution to
PEAR_Command_Common::getHelp
2002-05-14 01:45:20 +00:00
Stig Bakken
66605d218d * fix option parsing 2002-05-12 23:21:30 +00:00
Stig Bakken
3bc12ac242 * refactored the command/options code:
- now each command class should define a "commands" property with
    documentation, option specs etc.
  - both long and short options are now supported
  - after recent changes to Console_Getopt, you may now have options
    to commands even though the same option is also valid for the pear
    command itself
  - less CLI-centric, better suited to Gtk and Web frontends
2002-05-12 21:09:04 +00:00
Tomas V.V.Cox
94a3659642 The command name is now the first arg not the second 2002-05-12 16:42:50 +00:00
Tomas V.V.Cox
1bf2abc2f5 The first entry in argv is the command name, so Getopt will stop
parsing more args
# Stig be carefull, your change to Getopt breaks BC
2002-05-12 16:30:26 +00:00
Derick Rethans
24e96213ff - Fix phpize 2002-05-09 12:27:20 +00:00
Derick Rethans
f0d18c63be - Dump API NOs 2002-05-09 12:11:57 +00:00
foobar
1d4753755d Fix 'php-config --version' 2002-05-09 12:06:44 +00:00
Stig Bakken
b14c2f9185 * add -G option to "pear" for php-gtk frontend
* added Gtk stub (only creates window right now)
* added command descriptions
2002-05-09 02:31:37 +00:00
Jon Parise
b2579d3480 Revert the previous commit (revision 1.40).
@bindir@ ended up becoming '${exec_prefix}' (literally) on my system
(FreeBSD 4.5), thus producing a broken shebang line.

@prefix@ works fine for me here.  If @bindir@ is indeed preferred, the
substitution problem noted above needs to be resolved before the change
is reapplied.
2002-05-02 05:36:21 +00:00
Stig Bakken
40878cbe0e * PHP_PREFIX constant is not defined, use bin_dir pear config instead 2002-04-21 10:16:32 +00:00
Wez Furlong
b10b24d50c Always initialize wrappers, regardless of PG(allow_url_fopen).
Add is_url field to wrapper structure; the stream wrapper openers
will disallow opening is is_url && !PG(allow_url_fopen).
Add infrastructure for stat($url) and opendir($url).
Tidy up/centralize code that locates and instantiates wrappers for the
various operations.
Implement opendir for plain files.
Make the PHP opendir and dir functions use the streams implementations.
Add modelines for syntax highlighting the pear scripts in vim
2002-04-16 22:14:27 +00:00
James Cox
c602369f81 it's been changed back to php.exe 2002-04-09 09:59:17 +00:00
Alexander Merz
f6cc322d7d updated, requires PHP4.2 php-cgi 2002-04-09 09:28:04 +00:00
Stig Bakken
5bdc0eaafe * use the UI's displayFatalError method 2002-04-07 16:48:24 +00:00
Stig Bakken
812d9bf3c4 * remove "exit" at the end, it causes a "false" exit code always 2002-04-02 09:10:23 +00:00
Tomas V.V.Cox
def4a8485d - Set some php.ini values needed by the installer
- Removed unused present_array() and heading() functions
2002-04-01 16:49:19 +00:00
Tomas V.V.Cox
1924492aed Adaptation for the new help system 2002-04-01 14:35:08 +00:00
Stig Bakken
8ce0ceb372 * setUIType -> setFrontendType 2002-03-22 11:57:09 +00:00
Tomas V.V.Cox
9772468d37 - Make the rellocation of packages work as expected if the target
dir doesn't exist
- The "install -f" now replaces the info in the registry
2002-03-21 22:29:03 +00:00
Tomas V.V.Cox
41a8a27676 - Added command level options
- Fix error handling for Getopt (it doesn't use raiseError)
2002-03-21 20:55:41 +00:00
Tomas V.V.Cox
139f69ca32 Pass config to command factory and pass the correct command params 2002-03-21 11:13:02 +00:00
Stig Bakken
41c1c08495 * get rid of this hack 2002-03-18 18:01:14 +00:00
Stig Bakken
a036fe5b72 * Refactoring of "pear" command internals. Highlights:
- user interface abstraction, making a Gtk installer should only be
   a matter of implementing PEAR_CommandUI_Gtk plus a "pear-gtk" executable
 - separated code into command classes, able to specify one or more
   commands
 - no more "pear-get" :-)
* fixed use of PEAR_Config::singleton to avoid object copying
2002-03-18 17:39:52 +00:00
Sascha Schumann
9d9d39a0de Please welcome the new build system.
If you encounter any problems, please make sure to email sas@php.net
directly.

An introduction can be found on

http://schumann.cx/buildv5.txt
2002-03-07 14:20:02 +00:00
Vincent Blavet
04db776e71 Config variables must be set between "" while using pear.bat windows script 2002-02-20 22:39:16 +00:00
Martin Jansen
12ebcb3a21 * Fix for bug #15500 2002-02-17 15:32:53 +00:00
Vincent Blavet
f6f6d88ad3 * Synchronize pearwin script with pearcmd-xxx.php commands
* Still work to do
2002-02-13 21:27:54 +00:00
Vincent Blavet
dac7d61612 * user system/user config rather than default value 2002-02-13 21:26:39 +00:00
Vincent Blavet
e5a24250d2 - Adding support for remote-list command (with XML-RPC installed)
- Start support of show-config (still work to do ...)
2002-02-13 08:50:07 +00:00
Stig Bakken
042b883899 * print package name 2002-02-13 01:07:30 +00:00
Martin Jansen
7270b4223d * Better error handling. 2002-02-07 20:50:08 +00:00
Stig Bakken
c049dda279 * lowercase tags and attributes 2002-01-31 08:19:34 +00:00
Stig Bakken
615f110d4e * modularize "pear" and "pear-get" commands somewhat. checking options
etc. is done for both in pearcmd-common.php.
2002-01-30 12:20:12 +00:00
Vincent Blavet
06c98b477b * Call the PEAR_Registry constructor with the optional parameter 2002-01-24 08:24:24 +00:00
Vincent Blavet
2c91e54d5a * Add uninstall command
* Add list-installed command
2002-01-23 19:09:54 +00:00
Tomas V.V.Cox
ce82f6261a use the new Console_Getopt::readPHPArgv() function to read args 2002-01-06 20:19:41 +00:00
Tomas V.V.Cox
7f98b04296 Added check for $argv avaible
(thanks Michael Härtl <mhaertl@pressline.de>)
2002-01-05 17:20:08 +00:00
Stig Bakken
4fc3baefd2 * start splitting "pear" command into "pear" and "pear-get" 2002-01-02 17:11:34 +00:00
Tomas V.V.Cox
65a205a7db added default target for installing documentation 2001-12-26 04:00:30 +00:00
Tomas V.V.Cox
8e18d716f8 that makes more sense 2001-12-18 08:52:48 +00:00
Tomas V.V.Cox
be45657eea quick fix for the "pear info" command 2001-12-18 08:48:28 +00:00
Stig Bakken
aef2b692c1 * implemented "upgrade"
* report install/uninstall errors
2001-12-12 01:35:03 +00:00
Tomas V.V.Cox
18f2ffeead fixed bug #14414 2001-12-11 20:52:58 +00:00
Sebastian Bergmann
38933514e1 Update headers. 2001-12-11 15:32:16 +00:00
Stig Bakken
180cce6f63 * fixed the sub-command option parsing
* added -r option to install/uninstall (registers package without
  installing any files, for use by rpm and the like)
2001-12-11 08:39:56 +00:00
Tomas V.V.Cox
15f0f8ae23 implemented "uninstall" command 2001-11-15 01:24:35 +00:00
Stig Bakken
f705826052 * command name changes 2001-11-13 01:07:36 +00:00
Stig Bakken
b1976de01b * fix "list" command 2001-11-07 09:25:39 +00:00
Tomas V.V.Cox
5695709fb7 E_ALL fixes 2001-11-06 01:05:28 +00:00
Stig Bakken
f0df3f5f82 * added "pear info" and "pear show-config" commands
* "pear install" now using the package registry
2001-10-31 05:39:11 +00:00
Stig Bakken
7ab89b02c4 * started working on "pear list" command 2001-10-29 14:15:43 +00:00
Stig Bakken
fd42c6afba * nuked PEAR_Packlist class and added PEAR_Registry instead 2001-10-28 23:22:17 +00:00
Stig Bakken
cd0fb34562 * actually implement -s/-S options :-) 2001-10-27 07:52:12 +00:00
Stig Bakken
c278bfc448 * implemented "pear list-packages", the first sub-command using xmlrpc 2001-10-26 11:45:21 +00:00
Stig Bakken
f197cf3630 * PEAR_Config class to maintain system and per-user configuration for
PEAR installations
* PEAR_Remote class to communicate with the backend server (xmlrpc)
* change pear script's option parsing to "-d foo=bar" style
* added -c/-C (user/system config file) and -s/-S (store user/system config)
  options
2001-10-26 10:07:43 +00:00
Martin Jansen
e9eb586106 * fixed problem with copyright header on some systems. 2001-10-13 06:22:09 +00:00
Martin Jansen
d37016f26d * streamlined the copyright header
* changed path names in pear.bat to more typical values
# The GUI installer on Win32 installs PHP to c:\php by default, so we
# should make that the predefined value in the PEAR batch file.
2001-10-12 20:39:50 +00:00
Alexander Merz
8d66ae62e9 typo 2001-10-12 19:46:21 +00:00
Alexander Merz
262bcc637d win version of pear the pear script 2001-10-12 19:43:58 +00:00
Tomas V.V.Cox
73b5ff0389 tab vs ws 2001-09-27 23:59:16 +00:00
Stig Bakken
821ea15431 * Archive_Tar is no longer experimental 2001-08-28 12:26:47 +00:00
Stig Bakken
36c27603b1 * started work on php file support 2001-08-28 11:18:08 +00:00
Stig Bakken
f7fcf3a701 * fold case when parsing package.xml 2001-08-28 08:52:03 +00:00
Stig Bakken
b96e13a99d Added "phptar" command as proof that the Archive_Tar class works.
# Great work, Vincent!
2001-08-19 00:34:08 +00:00
Stig Bakken
ecb2b081f1 @Added --version option to php-config (Stig) 2001-08-13 07:58:29 +00:00
Stig Bakken
082165f198 * added emacs footer 2001-07-25 21:20:31 +00:00
Tomas V.V.Cox
c75f153daa Oops, said include but do require (thanks Jon and Rasmus) 2001-07-17 20:46:16 +00:00
Tomas V.V.Cox
55c6e37956 include only the needed files 2001-07-17 19:11:48 +00:00
Stig Bakken
fc7d897490 @Added "pearize" script to generate Makefile.in files for PEAR extensions 2001-05-28 11:15:19 +00:00
Tomas V.V.Cox
881f74263a -Changed $param[0] to $param{0} less ambiguous
-Readd "-?" param that shows the usage msg
2001-05-23 14:38:09 +00:00
Tomas V.V.Cox
e88dd1ac99 remove "?" from Console_Getopt. Sorry Andrei it was there and
I left there :)
2001-05-22 16:30:36 +00:00
Tomas V.V.Cox
a3d92b745a - Added the following params support:
* -p set script install dir
	* -e set extension install dir
	* -d set documentation dest dir
	* -v set verbose level
- Some error reporting clean up
- Added the standar PHP copyright header and authors
2001-05-22 16:21:02 +00:00
Stig Bakken
90c1355a75 * PEAR_Installer un-broken again, it still doesn't update the
package list though
* better error handling in "pear" script
2001-04-17 02:33:45 +00:00
Stig Bakken
457333c1fd * implemented PEAR_Packager to make distribution packages. Currently only
runs on platforms with GNU tar installed
* the "pear" script now requires a command parameter (similar to cvs),
  for example "pear package Cache.xml"
* broke PEAR_Installer :-)
2001-04-17 01:17:59 +00:00
Stig Bakken
6792978aed * updated copyrights (thanks Colin)
* moved scripts to own directory (bug #7635)
2001-01-10 01:01:59 +00:00