DOC: quvirc(5): Add HTTP section to the example
[quvi-tool.git] / gen-news.sh
blob0dce5d063956b3e31d61b5901294f1989f0362f2
1 #!/bin/sh
3 # quvi
4 # Copyright (C) 2012 Toni Gundogdu <legatvs@gmail.com>
6 # This file is part of quvi <http://quvi.sourceforge.net/>.
8 # This program is free software: you can redistribute it and/or
9 # modify it under the terms of the GNU Affero General Public
10 # License as published by the Free Software Foundation, either
11 # version 3 of the License, or (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU Affero General Public License for more details.
18 # You should have received a copy of the GNU Affero General
19 # Public License along with this program. If not, see
20 # <http://www.gnu.org/licenses/>.
22 set -e
23 IFS=$'
25 v=`./gen-ver.sh`
26 b="$v [`date +%F`]
29 t=`git describe --abbrev=0`
30 for a in `git log --no-merges --format='%an' "$t"..HEAD | sort | uniq`; do
31 c=`git log --no-merges --format=" - %s [%h]" --author="$a" "$t"..HEAD | sort -h`
32 b="$b$a:
35 done
36 b="$b
37 `git diff --shortstat "$t"..HEAD`
40 n=`cat NEWS`
41 F=NEWS
42 echo "$b" >"$F" ; echo "$n" >>"$F"