Changes in tools/cc.sh [5411bd3:40c0483] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/cc.sh

    r5411bd3 r40c0483  
    3636EOF
    3737
    38 # Find out the path to the script.
    39 SOURCE_DIR=`which -- "$0" 2>/dev/null`
    40 # Maybe we are running bash.
    41 [ -z "$SOURCE_DIR" ] && SOURCE_DIR=`which -- "$BASH_SOURCE"`
    42 [ -z "$SOURCE_DIR" ] && exit 1
    43 SOURCE_DIR=`dirname -- "$SOURCE_DIR"`
    44 SOURCE_DIR=`cd $SOURCE_DIR && cd .. && echo $PWD`
    45 
    4638echo ""
    4739
    48 git -C "$SOURCE_DIR" grep 'Copyright ([cC])' | \
     40git grep 'Copyright ([cC])' | \
    4941        sed -E -n 's/^.*(Copyright \([cC]\) (20[0-9][0-9]-)?20[0-9][0-9],? [-a-zA-Z., ]*[-a-zA-Z.]$)/\1/p' | \
    5042        sed -E 's/ ( )+/ /' | \
Note: See TracChangeset for help on using the changeset viewer.