-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlastcommits.sh
executable file
·99 lines (71 loc) · 1.79 KB
/
lastcommits.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!/bin/bash
source common.sh
getcmakemodules
function gitcheck {
cd $1
git remote -v >>../$lastcommitslog
echo -e "\r\n"
git log -n 1 >>../$lastcommitslog
echo -e "\r\n\r\n------------------------------------------------------\r\n\r\n" >> ../$lastcommitslog
cd ..
}
commitlogs_now=lastcommits_before_`date "+%Y%m%d_%H%M%S_%N"`.txt
lastcommitslog=lastcommits_actual.txt
echo "commit log now: " $commitlogs_now
echo "last commit log: " $lastcommitslog
# move lastcommitlog into an archive
if [ -e $lastcommitslog ]; then
mv $lastcommitslog $commitlogs_now
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
else
touch $commitlogs_now
fi
touch $lastcommitslog
echo "3.1 kms-cmake-utils"
gitcheck kms-cmake-utils
echo "3.2 kurento-module-creator"
gitcheck kurento-module-creator/
echo "3.3 gstreamer-1.7.x/1.8.1 (Fork of github/kurento/gstreamer 06.06.2017"
gitcheck gstreamer
echo "3.4 gst-plugins-base-1.5"
gitcheck gst-plugins-base
echo "3.5 jsoncpp"
gitcheck jsoncpp
echo "3.6 kms-jsonrpc"
gitcheck kms-jsonrpc
echo "3.7 libvpx"
gitcheck libvpx
echo "3.8 kms-core"
gitcheck kms-core
echo "3.9 libevent"
gitcheck libevent/
echo "3.10 kurento-media-server"
gitcheck kurento-media-server
echo "3.11 usersctp"
gitcheck usrsctp
echo "3.12 openwebrtc-gst-plugins"
gitcheck openwebrtc-gst-plugins/
echo "3.13 libnice"
gitcheck libnice
echo "3.14 kms-elements"
gitcheck kms-elements
echo "3.15 opencv"
gitcheck opencv
echo "3.16 kms-filters"
gitcheck kms-filters
echo "3.17 gst-plugins-good"
gitcheck gst-plugins-good
echo "3.18 libsrtp"
gitcheck libsrtp
echo "3.19 gst-plugins-bad"
gitcheck gst-plugins-bad
echo "3.20 glib"
gitcheck glib
echo "3.21 openssl"
gitcheck openssl
diff $lastcommitslog $commitlogs_now
ret=$?
if [[ $ret -eq 0 ]]; then
echo "No changes since last check!"
fi
echo "LAST LOG UPDATE DONE."