source: scripts/changelog.sh @ 1768

Last change on this file since 1768 was 1768, checked in by Александър Шопов, 13 years ago

Добавям Ивайло Вълков

  • Property svn:executable set to *
File size: 1014 bytes
Line 
1#!/bin/bash
2
3if [ "x$1" == "x" ]; then
4   echo 'First argument should be translator alias' >&2
5   exit 1
6fi
7PERSON=$( sed -n "/^$1|/s/^$1|//p" << EOF
8ash|Alexander Shopov <ash@contact.bg>
9ilia|Ilia Penev <picholicho@gmail.com>
10iv|Ivaylo Valkov <ivaylo@e-valkov.org>
11vic|Victor Dachev <vdachev@gmail.com>
12vlad|Vladimir Petkov <kaladan@gmail.com>
13ya|Yavor Doganov <yavor@gnu.org>
14ys|Yassen Pramatarov <yassen@lindeas.com>
15EOF
16)
17
18if [ "x$PERSON" == "x" ] 
19 then
20   echo 'Unknown translator' >&2
21   exit 2
22fi
23
24DATE=$(date +%Y-%m-%d)
25
26if [ ! -f ChangeLog ]; then
27    echo  'No ChangeLog file' >&2
28    exit 3
29fi
30
31svn revert ChangeLog
32svn up ChangeLog
33
34TMPFILE=$( mktemp -t ChangeLog.XXXXXXXXXX )
35
36if [ $? -ne 0 ]; then
37   echo 'Unable to make temp file' >&2
38   exit 4
39fi
40
41cat << EOF >>$TMPFILE
42$DATE  Alexander Shopov  <ash@contact.bg>
43
44        * bg.po: Updated Bulgarian translation by
45        $PERSON
46
47EOF
48
49cat ChangeLog >> $TMPFILE
50
51mv $TMPFILE ChangeLog
52
53if [ $? -ne 0 ]; then
54   echo 'Unable to move temp file' >&2
55   exit 5
56fi
57
Note: See TracBrowser for help on using the repository browser.