-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathcommits.sh
executable file
·115 lines (95 loc) · 2.32 KB
/
commits.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#!/bin/bash
show() {
pushd "$1" >> /dev/null
HASH=$(git rev-parse --short=8 HEAD)
NAME=$(basename $PWD)
DATE=$(git log -1 --pretty='%ad' --date=format:'%Y-%m-%d')
REPO=$(git config --get remote.origin.url)
REPO=$(sed -E "s,(^[email protected]:)|(^https?://github.com/)|(.git$)|(/$),,g" <<<"$REPO")
popd >> /dev/null
printf '\055 %-24s%-10s%-12s%s\n' $NAME $HASH $DATE $REPO
}
list() {
pushd "$1" >> /dev/null
for D in ./*; do
show "$D"
done
popd >> /dev/null
}
rule() {
echo '----------------------------------------------------------------'
}
tell() {
echo $1
rule
}
cores() {
echo CORES
list ./workspace/$1/cores/src
bump
}
bump() {
printf '\n'
}
{
# tell MINUI
printf '%-26s%-10s%-12s%s\n' MINUI HASH DATE USER/REPO
rule
show ./
bump
tell TOOLCHAINS
list ./toolchains
bump
tell LIBRETRO
show ./workspace/all/minarch/libretro-common
bump
tell RG35XX
show ./workspace/rg35xx/other/DinguxCommander
show ./workspace/rg35xx/other/evtest
cores rg35xx
tell MIYOOMINI
show ./workspace/miyoomini/other/DinguxCommander
show ./workspace/miyoomini/other/sdl
cores miyoomini
tell TRIMUISMART
show ./workspace/trimuismart/other/DinguxCommander
show ./workspace/trimuismart/other/unzip60
cores trimuismart
tell RGB30
show ./workspace/rgb30/other/DinguxCommander
cores rgb30
tell TG5040
show ./workspace/tg5040/other/evtest
show ./workspace/tg5040/other/jstest
show ./workspace/tg5040/other/unzip60
cores tg5040
tell M17
cores m17
tell RG35XXPLUS
show ./workspace/rg35xxplus/other/dtc
show ./workspace/rg35xxplus/other/fbset
show ./workspace/rg35xxplus/other/sdl2
show ./workspace/rg35xxplus/other/unzip60
cores rg35xx # just copied from normal rg35xx
tell GKDPIXEL
cores gkdpixel
tell MY282
show ./workspace/my282/other/unzip60
show ./workspace/my282/other/DinguxCommander-sdl2
cores rg35xx # just copied from normal rg35xx
tell MAGICMINI
show ./workspace/magicmini/other/351files
cores magicmini
tell ZERO28
show ./workspace/zero28/other/DinguxCommander-sdl2
cores tg5040 # just copied from tg5040
tell MY355
show ./workspace/my355/other/evtest
show ./workspace/my355/other/mkbootimg
show ./workspace/my355/other/rsce-go
show ./workspace/my355/other/DinguxCommander-sdl2
cores my355
tell CHECK
echo https://github.com/USER/REPO/compare/HASH...HEAD
bump
} | sed 's/\n/ /g'