]> granicus.if.org Git - postgis/commitdiff
Add script to be used with git-svn --authors-prog
authorSandro Santilli <strk@keybit.net>
Wed, 13 Apr 2011 07:41:53 +0000 (07:41 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 13 Apr 2011 07:41:53 +0000 (07:41 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7020 b70326c6-7e19-0410-871a-916f4a2858ee

author.sh [new file with mode: 0755]

diff --git a/author.sh b/author.sh
new file mode 100755 (executable)
index 0000000..c25035f
--- /dev/null
+++ b/author.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+if test x"$1" = "x"; then
+  echo "Usage: $0 <nick>" >&2
+  exit 1
+fi
+
+authors_file="`dirname $0`/authors.svn"
+
+if test ! -e "${authors_file}"; then
+  echo "Authors file ${authors_file} does not exist" >&2
+  exit 1
+fi
+
+nick="$1"
+grep  "^${nick}" "${authors_file}" | cut -d: -f2