Changeset 2069


Ignore:
Timestamp:
Jan 3, 2011 11:00:37 PM (9 years ago)
Author:
lou
Message:

Make commit_new_[stable,release] insensitive to trailing / in directory spec
on command line.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/commit_new_release

    r1950 r2069  
    4545
    4646# Process the parameters. A parameter without an opening `-' is assumed to be
    47 # the spec for the directory to be committed.
     47# the spec for the directory to be committed. (Strip any trailing '/'. Some
     48# people add it, but the script doesn't expect it.)
    4849
    4950  while test $# -gt 0 && test $printHelp = 0 ; do
     
    5859           printHelp=1
    5960           ;;
    60         *) dirToCommit="$1"
     61        *) dirToCommit=`echo $1 | sed -e 's,/$,,'`
    6162           ;;
    6263    esac
  • trunk/commit_new_stable

    r1950 r2069  
    4343
    4444# Process the parameters. A parameter without an opening `-' is assumed to be
    45 # the spec for the directory to be committed.
     45# the spec for the directory to be committed. (Strip any trailing '/'. Some
     46# people add it, but the script doesn't expect it.)
    4647
    4748  while test $# -gt 0 && test $printHelp = 0 ; do
     
    5657           printHelp=1
    5758           ;;
    58         *) dirToCommit="$1"
     59        *) dirToCommit=`echo $1 | sed -e 's,/$,,'`
    5960           ;;
    6061    esac
Note: See TracChangeset for help on using the changeset viewer.