3 echo "Usage $0 <repo> <outfile>"
10 modules
="devops openvim RO SO UI IM osmclient"
13 if [ $REPO == "$i" -o $REPO == "all" ]; then
19 [ $REPO == "all" ] && list
=$modules
21 if [ -z "$list" ]; then
22 echo "Repo must be one of these: $modules all"
26 echo "<h1>OSM Changelog</h1>" >> $OUTFILE
31 git clone https
://osm.etsi.org
/gerrit
/osm
/$i
33 git
-C $i checkout master
34 git
-C $i pull
--rebase
35 git
-C $i fetch
--tags
36 TAG_START
=$
(git
-C $i tag |
sort -Vr |
head -2 |
sort -V |
head -1)
37 TAG_END
=$
(git
-C $i tag |
sort -Vr |
head -1)
38 echo "<h2>Changes for $i tag: ${TAG_START}..${TAG_END}</h2>" >> $OUTFILE
39 #git -C $i log --pretty=format:"* %h; author: %cn; date: %ci; subject:%s" ${TAG_START}..${TAG_END} >> $OUTFILE
40 git
-C $i log
--pretty=format
:"<li> <a href=https://osm.etsi.org/gitweb/?p=osm/$i.git;a=commitdiff;h=%H>%h •</a> %s</li> " --reverse ${TAG_START}..
${TAG_END} >> $OUTFILE