Changeset 323 for trunk/confadmin.in


Ignore:
Timestamp:
05/03/2009 16:25:09 (3 years ago)
Author:
ccowart
Message:

Refactored sourcing of the documentation library to support the confadmin
utility. Cleaned up handling of -h for these scripts.

Also set the keywords property on source files that were missing it.

Fixes #20

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/confadmin.in

    • Property svn:keywords set to Id
    r315 r323  
    2525# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    2626# 
    27 # $Id: confman.in 308 2009-01-27 07:01:40Z ccowart $ 
     27# $Id$ 
    2828# 
    2929 
     
    3232else 
    3333    echo "Can't find confmancommon.sh. Exiting." >&2 
     34fi 
     35 
     36# Source the documentation library 
     37if [ -f $REPO_DOCS_CONFADMIN ] ; then 
     38        . $REPO_DOCS_CONFADMIN 
     39else 
     40    echo "Couldn't source the confman shell documentation library" >&2 
     41        exit 1 
    3442fi 
    3543 
     
    5563 
    5664# Debug mode? 
    57 while getopts "d" opt ; do 
     65while getopts "hd" opt ; do 
    5866        case $opt in 
    59                 d) 
    60                 DEBUG="true" 
    61                 shift 
    62                 ;; 
    63                 *) 
    64                 print_help 1 
    65                 ;; 
     67                d) DEBUG="true" ;; 
     68        h) shift ; print_help "$@" ; exit 0 ;; 
     69                *) print_usage 1 ;; 
    6670        esac 
    6771done 
Note: See TracChangeset for help on using the changeset viewer.