Skip to content

Commit

Permalink
contrithanks.sh: helper script for maintaining THANKS
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Apr 22, 2015
1 parent 79b9d5f commit 7166fd8
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions contrithanks.sh
@@ -0,0 +1,57 @@
#!/bin/sh
#***************************************************************************
# _ _ ____ _
# Project ___| | | | _ \| |
# / __| | | | |_) | |
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
# Copyright (C) 2013-2015, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://curl.haxx.se/docs/copyright.html.
#
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
# copies of the Software, and permit persons to whom the Software is
# furnished to do so, under the terms of the COPYING file.
#
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# KIND, either express or implied.
#
###########################################################################

#
# This script shows all mentioned contributors from <hash> until HEAD and
# puts them at the end of the THANKS document on stdout
#

start=$1

if test -z "$start"; then
echo "Usage: $0 <since this tag/hash>"
fi

cat ./docs/THANKS

(
git log $start..HEAD | \
egrep -i '(Author|Commit|by):' | \
cut -d: -f2- | \
cut '-d<' -f1 | \
tr , '\012' | \
sed 's/ and /\n/' | \
sed -e 's/^ //' -e 's/ $//g'

# grep out the list of names from RELEASE-NOTES
# split on ", "
# remove leading white spaces
grep "^ [^ (]" RELEASE-NOTES| \
sed 's/, */\n/g'| \
sed 's/^ *//'

)| \
sed -f ./docs/THANKS-filter | \
grep ' ' | \
sort -fu | \
grep -xvf ./docs/THANKS

2 comments on commit 7166fd8

@gvanem
Copy link
Contributor

@gvanem gvanem commented on 7166fd8 Apr 29, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or contribthanks.sh? A typo (missing `b) or trying to keep 8+3 file uniqueness ?

@bagder
Copy link
Member Author

@bagder bagder commented on 7166fd8 Apr 29, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was just a quick name for a helper script, "contributors and thanks" put together so the 'b' could be there or not be there, no big deal.

Please sign in to comment.