From 091ee417b4e465cf7ab5c669fe42e6030c11aa2d Mon Sep 17 00:00:00 2001 From: avel Date: Tue, 17 Oct 2006 13:53:54 +0000 Subject: [PATCH] Add two new command line options in conf.pl: --update-plugins or -u updates plugin_hooks.php only and exits. --help or -h displays some command line usage. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11920 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- config/conf.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/config/conf.pl b/config/conf.pl index 8f75be14..a3d1c7f7 100755 --- a/config/conf.pl +++ b/config/conf.pl @@ -485,6 +485,20 @@ if ( $ARGV[0] eq '--install-plugin' ) { @plugins = @newplugins; save_data(); exit(0); +} elsif ( $ARGV[0] eq '--update-plugins' or $ARGV[0] eq '-u') { + build_plugin_hook_array(); + exit(0); +} elsif ( $ARGV[0] eq '--help' or $ARGV[0] eq '-h') { + print "SquirrelMail Configuration Script\n"; + print "Usage:\n"; + print " * No arguments: initiates the configuration dialog\n"; + print " * --install-plugin : activates the specified plugin\n"; + print " * --remove-plugin : deactivates the specified plugin\n"; + print " * --update-plugins , -u : rebuilds plugin_hooks.php according\n"; + print " to plugins activated in config.php\n"; + print " * --help , -h : Displays this help\n"; + print "\n"; + exit(0); } ##################################################################################### -- 2.25.1