CVS: theedge/sbin lget, 1.22, 1.23 lin, 1.62, 1.63 lrm, 1.18, 1.19 lunar, 1.21, 1.22

Terry Chan tchan at lunar-linux.org
Thu Aug 7 05:56:50 GMT 2003


Update of /var/cvs/lunar/theedge/sbin
In directory dbguin.lunar-linux.org:/tmp/cvs-serv9463

Modified Files:
	lget lin lrm lunar 
Log Message:
Added/corrected help() function text in all four coretools.  Still needs
work by sofar.


Index: lget
===================================================================
RCS file: /var/cvs/lunar/theedge/sbin/lget,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- lget	6 Aug 2003 23:12:46 -0000	1.22
+++ lget	7 Aug 2003 05:56:48 -0000	1.23
@@ -41,8 +41,11 @@
 
 Optional Parameters:
 
-       --from directory Specify an alternate for $SOURCE_CACHE
-       --url URL  Specify an alternate download URL
+   -d | --debug                 Enables debug messages
+   -f | --from  directory       Specify an alternate for $SOURCE_CACHE
+   -h | --help                  Displays this help text
+   -u | --url     URL           Specify an alternate download URL
+   -v | --verbose               Increases the level of message output
 EOF
 
   exit  1
@@ -83,7 +86,7 @@
 
 . /etc/lunar/config
 
-GETOPT_ARGS=$(getopt -q -n lget -o "dfhuv" -l "debug,from,help,url,verbose" -- "$@")
+GETOPT_ARGS=$(getopt -q -n lget -o "df:hu:v" -l "debug,from:,help,url:,verbose" -- "$@")
 
 if [ -z "$?" ] ; then
   help | view_file

Index: lin
===================================================================
RCS file: /var/cvs/lunar/theedge/sbin/lin,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- lin	6 Aug 2003 23:12:46 -0000	1.62
+++ lin	7 Aug 2003 05:56:48 -0000	1.63
@@ -35,27 +35,16 @@
 
 Optional Parameters:
 
--f  |  --fix			Discover and fix broken modules
--n  |  --nofix			Discover, but do not fix broken modules
--d  |  --fixdepends             Discover and fix dependency problems, but
-                                do not recompile modules
-
--s				Download 1st, lin 2nd
-    |  --deps			Configure modules and determine dependencies, 
-				but do not lin.
-
-       --debug                  show debug output
--p  |  --probe                  Only lin if not already installed
-
 -c  |  --compile		Ignore $INSTALL_CACHE and compiles
+-d  |  --debug                  Enables debug messages
+       --deps			Configure modules and determine dependencies, 
+-f  |  --from  directory	Specify an alternate for $SOURCE_CACHE
+-h  |  --help                   Displays this help text
+-p  |  --probe                  Only lin if not already installed
 -r  |  --reconfigure		Select new dependencies for modules
-
-       --from	directory	Specify an alternate for $SOURCE_CACHE
-       --url	URL		Specify an alternate download URL
-
-       --pam			re-lins all installed modules that
-				can use Linux-PAM
-
+-R  |  --resurrect              Force module to be unpacked from /var/cache/lunar
+-s  |  --silent			Decreases the level of message output
+-v  |  --verbose                Increases the level of message output
 EOF
   exit  1
 }

Index: lrm
===================================================================
RCS file: /var/cvs/lunar/theedge/sbin/lrm,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- lrm	6 Aug 2003 23:12:46 -0000	1.18
+++ lrm	7 Aug 2003 05:56:48 -0000	1.19
@@ -19,13 +19,12 @@
 help() {
 cat << END
 usage: lrm [options] [module ...]
-   -h  --help        displays this screen
-       --debug       debug output
-   -d  --downgrade   [module] [version] downgrades a module
-   -s  --nosustain   removes module(s) even if they are sustained
-   -k  --keepconfig  remove module(s) but keep dependencies and config
-   -t  --test        test only, do not actually do anything
-   -V  --version     display version information and exit
+   -d | --debug         Enables debug messages
+   -D | --downgrade [module] [version] downgrades a module
+   -h | --help          Displays this help text
+   -k | --keepconfig    remove module(s) but keep dependencies and config
+   -n | --nosustain     removes module(s) even if they are sustained
+   -v | --verbose       Increases the level of message output
    
 lrm is a script for removing installed modules.
    If invoked without options, lrm will remove all installed files 
@@ -327,7 +326,7 @@
 
 
 
-GETOPT_ARGS=$(getopt -q -n lin -o "dD:hknv" -l "debug,downgrade:,help,keepconfig,nosustain,verbose" -- "$@")
+GETOPT_ARGS=$(getopt -q -n lrm -o "dD:hknv" -l "debug,downgrade:,help,keepconfig,nosustain,verbose" -- "$@")
 
 if [ -z "$?" ] ; then
   help | view_file

Index: lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/sbin/lunar,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- lunar	6 Aug 2003 23:12:46 -0000	1.21
+++ lunar	7 Aug 2003 05:56:48 -0000	1.22
@@ -27,6 +27,41 @@
 ############################################################
 
 
+help()	{
+  cat  <<  EOF
+Lunar -- a menu-driven software package management utility
+
+Example:        lunar
+  This invokes the full-screen interface
+  
+Usage:		lunar [optional parameters] [parameters]
+
+Optional Parameters:
+
+-d  |  --debug                  Enables debug messages
+-h  |  --help                   Displays this help text
+-v  |  --verbose                Increases the level of message output
+
+Parameters:
+
+prune                   Removes old sources and install/compile logs
+renew                   Checks ver. against moonbase & recompiles if necessary
+update                  Fetches latest moonbase and then does a "renew"
+rebuild                 Recompiles all installed modules
+optimize                Shortcut to the optimization menu
+fix                     Check and fix all modules and internal state of lunar
+fixdepends              Check and fix the dependency database of lunar
+resurrect  modulename(s)  Force modulename(s) to be unpacked from /var/cache
+install    modulename(s)  Install a checklist of modules
+remove     modulename(s)  Remove a checklist of modules
+hold       modulename(s)  Place a hold on a checklist of modules
+unhold     modulename(s)  Remove a hold on a checklist of modules
+exile      modulename(s)  Remove a module and prevent it from being resurrected
+unexile    modulename(s)  Allows a module to be compiled|resurrected again
+EOF
+  exit  1
+}
+
 show_modules()	{ 
   for  MODULE in `list_modules "$1"`;  do
     if  !  module_installed  $MODULE  &&




More information about the Lunar-commits mailing list