-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuildday.sh
50 lines (42 loc) · 867 Bytes
/
buildday.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#! /bin/bash
startdir=$PWD
cd /c/Program\ Files/World\ of\ Warcraft/Interface/AddOns
echo ""
for folder in `ls -d */.git`
do
cd $folder/..
mydir=`pwd | sed "s/.*\///"`
lasttag=`git-describe --tags --abbrev=0 HEAD`
if [ $lasttag ]
then
revcount=0
for commit in `git-rev-list --no-merges $lasttag..HEAD`
do
let "revcount += 1"
done
if (($revcount > 0))
then
echo ""
echo "---- $mydir has had $revcount commits since tag $lasttag ----"
git-log $lasttag..HEAD --no-merges --pretty=format:"%h (%cr) - %s" | cat
echo ""
fi
else
revcount=0
for commit in `git-rev-list HEAD`
do
let "revcount += 1"
done
if (($revcount > 0))
then
echo ""
echo "---- $mydir has $revcount commits ----"
git-log HEAD --no-merges --pretty=format:"%h (%cr) - %s" | cat
echo ""
fi
fi
cd ..
done
cd "$startdir"
echo ""
exit 0