tests: media_vimeo: Run additional checks
[libquvi-scripts.git] / gen-news.sh
blob7f7de3735cbfa3f8dc7f51df42e76ae1ee3d68c6
1 #!/bin/sh
3 # libquvi-scripts
4 # Copyright (C) 2012 Toni Gundogdu <legatvs@gmail.com>
6 # This file part of libquvi-scripts <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
24 IFS=$'
26 v=`./gen-ver.sh -m`
27 b="$v.`date +%Y%m%d`
30 t=`git describe --abbrev=0`
31 for a in `git log --no-merges --format='%an' "$t"..HEAD | sort | uniq`; do
32 c=`git log --no-merges --format=" - %s [%h]" --author="$a" "$t"..HEAD | sort -h`
33 b="$b$a:
36 done
37 b="$b
38 `git diff --shortstat "$t"..HEAD`
41 n=`cat NEWS`
42 F=NEWS
43 echo "$b" >"$F" ; echo "$n" >>"$F"