File: update_mailmap.sh

package info (click to toggle)
nipype 1.9.2-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,260 kB
  • sloc: python: 156,463; javascript: 9,246; tcl: 608; sh: 485; makefile: 168
file content (22 lines) | stat: -rw-r--r-- 437 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

# usage -> bash update_mailmap.sh <previous-release>
# by default, will use the latest tag

set -ux

ROOT=$( git rev-parse --show-toplevel )
MAILMAP=$ROOT/.mailmap

LAST=$(git describe --tags `git rev-list --tags --max-count=1`)
RELEASE=${1:-$LAST}

IFS=$'\n'
for NAME in $(git shortlog -nse $RELEASE.. | cut -f2-); do
    echo $NAME
done

# sort and write
sort $MAILMAP > .tmpmailmap
cp .tmpmailmap $MAILMAP
rm .tmpmailmap