RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Pinto Elia
  Root:   /v/rpm/cvs                       Email:  devzero2...@rpm5.org
  Module: rpm                              Date:   27-Jun-2011 17:01:58
  Branch: HEAD                             Handle: 2011062715015800

  Modified files:
    rpm                     devtool

  Log:
    change a little the last change to devtool: mostly estetic

  Summary:
    Revision    Changes     Path
    2.11        +8  -6      rpm/devtool
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/devtool
  ============================================================================
  $ cvs diff -u -r2.10 -r2.11 devtool
  --- rpm/devtool       20 Jun 2011 14:45:44 -0000      2.10
  +++ rpm/devtool       27 Jun 2011 15:01:58 -0000      2.11
  @@ -4,10 +4,12 @@
   ##  Copyright (c) 2001 Ralf S. Engelschall <r...@engelschall.com>
   ##
   Usage () {
  -    echo "Usage: ./devtool <target>" 1>&2
  -    echo "where target is one of the following:" 1>&2
  -    echo "" 1>&2
  -    grep '^%[[:alpha:]][[:alpha:]]*' devtool.conf | sed -e 's#^%##'
  +    cat <<EOF 1>&2
  +Usage: ./devtool <target command>
  +where target command is one of the following:
  +
  +$(grep '^%[[:alpha:]][[:alpha:]]*' devtool.conf | sed -e 's#^%##')
  +EOF
   }
   #   determine source tree location
   DEVTOOL_SRCDIR=`echo "$0" | sed -e 's;/devtool$;;'`
  @@ -21,7 +23,7 @@
   
   #   usage sanity check
   if [ $# -eq 0 ]; then
  -    echo "devtool:USAGE: devtool <command> [<arg> ...]" 1>&2
  +    Usage
       exit 1
   fi
   cmd="$1"
  @@ -29,7 +31,7 @@
   [ "${cmd}" = "--help" -o "${cmd}" = "-h" ] && Usage && exit 0
   cmdline=`grep "^%$cmd" ${DEVTOOL_SRCDIR}/devtool.conf`
   if [ ".$cmdline" = . ]; then
  -    echo "devtool:ERROR: command $cmd not found in devtool.conf" 1>&2
  +    echo "devtool:ERROR: target command $cmd not found in devtool.conf" 1>&2
       Usage
       exit 1
   fi
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                rpm-cvs@rpm5.org

Reply via email to