From: Alexandros V. <av...@us...> - 2006-10-17 13:53:58
|
Update of /cvsroot/squirrelmail/squirrelmail/config In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv20247 Modified Files: conf.pl Log Message: 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. Index: conf.pl =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/config/conf.pl,v retrieving revision 1.274 retrieving revision 1.275 diff -u -w -r1.274 -r1.275 --- conf.pl 14 Oct 2006 15:15:52 -0000 1.274 +++ conf.pl 17 Oct 2006 13:53:54 -0000 1.275 @@ -485,6 +485,20 @@ @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 <plugin> : activates the specified plugin\n"; + print " * --remove-plugin <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); } ##################################################################################### |