Changeset 388


Ignore:
Timestamp:
07/04/2009 17:22:09 (3 years ago)
Author:
ccowart
Message:

Version output is now supported.

Fixes #27

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.am

    • Property svn:keywords changed from Id to Id Revision
    r378 r388  
    11BASH = @BASH_SHELL@ 
     2 
     3VERSION += ($$Rev$$) 
    24 
    35bashcompdir = $(sysconfdir)/bash_completion.d 
     
    5355                -e 's,[@]SUDO[@],$(SUDO),g' \ 
    5456                -e 's,[@]SVN[@],$(SVN),g' \ 
    55                 -e 's,[@]GREADLINK[@],$(GREADLINK),g' 
     57                -e 's,[@]GREADLINK[@],$(GREADLINK),g' \ 
     58                -e 's,[@]VERSION[@],$(VERSION),g'  
    5659 
    5760confman: confman.in Makefile 
  • trunk/configure.ac

    • Property svn:keywords changed from Id to Id Revision
  • trunk/confman.8.in

    r332 r388  
    3434.Nm 
    3535.Op Fl h | Cm help 
     36.Op Fl v | Cm version 
    3637.Nm 
    3738.Ar command Oo Ar command_opts Oc Op Ar command_args 
  • trunk/confman.in

    r387 r388  
    975975} 
    976976 
     977function print_version { 
     978    echo "confman-${VERSION}" 
     979} 
     980 
    977981# Debug mode? 
    978 while getopts "hd-" opt ; do 
     982while getopts "hdv-" opt ; do 
    979983        case $opt in 
    980984                d) DEBUG="true" ; shift ;; 
    981985        h) shift ; print_help "$@" ; exit 0 ;; 
     986        v) print_version ; exit 0 ;; 
    982987                *) print_usage 1 ;; 
    983988        esac 
     
    991996case $subcommand in 
    992997    help )                          print_help "$@" ; trap EXIT; exit 0 ;; 
     998    version )                       print_version; trap EXIT; exit 0;; 
    993999    setup|se* )                     setup "$@" ;; 
    9941000    status )                        status "$@" ;; 
  • trunk/confmanlib.sh.in

    r387 r388  
    3232WCOPY_DIRTY="false" 
    3333 
    34 VERSION="1.9.a" 
     34VERSION='@VERSION@' 
    3535REPO_VERSION="2" 
    3636 
Note: See TracChangeset for help on using the changeset viewer.