OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Thomas Lotterer
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-registry                 Date:   29-Nov-2005 18:04:50
  Branch: HEAD                             Handle: 2005112917044900

  Modified files:
    openpkg-registry        register.sh

  Log:
    reorder options and update usage

  Summary:
    Revision    Changes     Path
    1.16        +24 -24     openpkg-registry/register.sh
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-registry/register.sh
  ============================================================================
  $ cvs diff -u -r1.15 -r1.16 register.sh
  --- openpkg-registry/register.sh      29 Nov 2005 17:01:46 -0000      1.15
  +++ openpkg-registry/register.sh      29 Nov 2005 17:04:49 -0000      1.16
  @@ -143,11 +143,6 @@
           -R|--rewriteurls ) op="rewriteurls" ;;
   
           # Standard options
  -        -c|--conf )
  -          if [ ".$arg" = . ]; then shift; arg="$1"; fi
  -          if [ ".$arg" = . ]; then help="Missing argument to \"$opt\""; 
break; fi
  -          REGISTRY_CONF="$arg"; readconf
  -          ;;
           -m|--mode )
             if [ ".$arg" = . ]; then shift; arg="$1"; fi
             if [ ".$arg" = . ]; then help="Missing argument to \"$opt\""; 
break; fi
  @@ -170,11 +165,26 @@
             ;;
   
           # Advanced options
  +        --plat )
  +          if [ ".$arg" = . ]; then shift; arg="$1"; fi
  +          if [ ".$arg" = . ]; then help="Missing argument to \"$opt\""; 
break; fi
  +          REGISTRY_PLAT="$arg"
  +          ;;
  +        --orel )
  +          if [ ".$arg" = . ]; then shift; arg="$1"; fi
  +          if [ ".$arg" = . ]; then help="Missing argument to \"$opt\""; 
break; fi
  +          REGISTRY_VERS="$arg"
  +          ;;
           --uuid )
             if [ ".$arg" = . ]; then shift; arg="$1"; fi
             if [ ".$arg" = . ]; then help="Missing argument to \"$opt\""; 
break; fi
             REGISTRY_UUID="$arg"
             ;;
  +        --conf )
  +          if [ ".$arg" = . ]; then shift; arg="$1"; fi
  +          if [ ".$arg" = . ]; then help="Missing argument to \"$opt\""; 
break; fi
  +          REGISTRY_CONF="$arg"; readconf
  +          ;;
           --prep )
             if [ ".$arg" = . ]; then shift; arg="$1"; fi
             if [ ".$arg" = . ]; then help="Missing argument to \"$opt\""; 
break; fi
  @@ -190,16 +200,6 @@
             if [ ".$arg" = . ]; then help="Missing argument to \"$opt\""; 
break; fi
             REGISTRY_UTIL="$arg"
             ;;
  -        --plat )
  -          if [ ".$arg" = . ]; then shift; arg="$1"; fi
  -          if [ ".$arg" = . ]; then help="Missing argument to \"$opt\""; 
break; fi
  -          REGISTRY_PLAT="$arg"
  -          ;;
  -        --orel )
  -          if [ ".$arg" = . ]; then shift; arg="$1"; fi
  -          if [ ".$arg" = . ]; then help="Missing argument to \"$opt\""; 
break; fi
  -          REGISTRY_VERS="$arg"
  -          ;;
   
           # Debug options
           -v|--verbose ) verbose="yes" ;;
  @@ -220,19 +220,19 @@
       if [ ".$help" != ".Usage" ]; then
           echo "$progname:ERROR: $help" 1>&2
       fi
  -    echo "Usage: $progname :
  -          [-v|--verbose] [-h|--help]
  -          [-P|--preparation] [-T|--transaction] [-U|--utilization] 
[-C|--convenience] [-I|--interaction]
  -          [-c|--conf=<file>]
  +    echo "Usage: $progname:
             -m|--mode=fake|post|wipe [-a|--args=<args>] -u|--user=<user> 
[-d|--desc=<text>]
  -          [--uuid=<file>] [--prep=<file>] [--tran=<file>] [--util=<file>]
  +          [-v|--verbose] [-h|--help]
             [--plat=<text>] [--orel=<text>]
  -          Usage: $progname :
  +          [--uuid=<file>]
  +          [--conf=<file>] [--prep=<file>] [--tran=<file>] [--util=<file>]
  +          [-P|--preparation] [-T|--transaction] [-U|--utilization] 
[-C|--convenience] [-I|--interaction]
  +
  +          Usage: $progname:
             -S|--printstatus
  -          Usage: $progname :
  -          -R|--rewriteurls [[url]...]]
  -          " 1>&2
   
  +          Usage: $progname:
  +          -R|--rewriteurls [[url]...]]" 1>&2
       if [ ".$help" != ".Usage" ]; then
           exit 1
       else
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to