-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwbuildday.sh
56 lines (47 loc) · 1018 Bytes
/
wbuildday.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
51
52
53
54
55
56
#! /bin/bash
startdir=$PWD
cd /e/Wrath\ of\ the\ Lich\ King\ Beta/Interface/AddOns
echo ""
for folder in `ls -d */.git`
do
cd $folder/..
mydir=`pwd | sed "s/.*\///"`
if ! git-status | grep "nothing to commit (working directory clean)" > /dev/null
then
echo ""
echo "---- $mydir has uncommitted changes ----"
fi
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