-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.sh
86 lines (79 loc) · 3.34 KB
/
script.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
#!/bin/bash
if [ -f /tmp/log.txt ]; then
rm -f /tmp/log.txt
fi
cd py-hubmap-inventory
git log --pretty=format:user:%aN%n%ct --reverse --raw --encoding=UTF-8 --no-renames --no-show-signature > /tmp/log.txt
cd ..
#Staff
if [[ "$OSTYPE" == *"darwin"* ]]; then
sed -i '' 's|Ivan E. Cao-Berg|Ivan|g' /tmp/log.txt
sed -i '' 's|icaoberg|Ivan|g' /tmp/log.txt
sed -i '' 's|Ivan Cao-Berg|Ivan|g' /tmp/log.txt
sed -i '' 's|eduardo.figueroa7|Eduardo|g' /tmp/log.txt
sed -i '' 's|Monica Paz Parra|Monica|g' /tmp/log.txt
sed -i '' 's|fshormin|Fatema|g' /tmp/log.txt
else
sed -i 's|Ivan E. Cao-Berg|Ivan|g' /tmp/log.txt
sed -i 's|icaoberg|Ivan|g' /tmp/log.txt
sed -i 's|Ivan Cao-Berg|Ivan|g' /tmp/log.txt
sed -i 's|eduardo.figueroa7|Eduardo|g' /tmp/log.txt
sed -i 's|Monica Paz Parra|Monica|g' /tmp/log.txt
sed -i 's|fshormin|Fatema|g' /tmp/log.txt
fi
#students
if [[ "$OSTYPE" == *"darwin"* ]]; then
sed -i '' 's|jellyfishking-github|Neptune|g' /tmp/log.txt
sed -i '' 's|kexin-chen4|Kexin|g' /tmp/log.txt
sed -i '' 's|mercadec|Mercedes|g' /tmp/log.txt
sed -i '' 's|Sunshine-Alpha|Sunshine|g' /tmp/log.txt
sed -i '' 's|francojoshua|Joshua|g' /tmp/log.txt
sed -i '' 's|angelinaayoubi|Angie|g' /tmp/log.txt
sed -i '' 's|kvallejo6|Kimberly|g' /tmp/log.txt
sed -i '' 's|ManavMahida|Manav|g' /tmp/log.txt
sed -i '' 's|cmucung|Carmen|g' /tmp/log.txt
sed -i '' 's|Eunice-Son|Eunice|g' /tmp/log.txt
sed -i '' 's|eileen-png|Eileen|g' /tmp/log.txt
sed -i '' 's|Bobvius|Louis|g' /tmp/log.txt
sed -i '' 's|Tffny3|Tiffany|g' /tmp/log.txt
sed -i '' 's|sambenni|Sam|g' /tmp/log.txt
sed -i '' 's|Togundar|Temi|g' /tmp/log.txt
sed -i '' 's|marcuslynes|Marcuslyne|g' /tmp/log.txt
sed -i '' 's|nicolasw-cmu|Nicolas|g' /tmp/log.txt
else
sed -i 's|jellyfishking-github|Neptune|g' /tmp/log.txt
sed -i 's|kexin-chen4|Kexin|g' /tmp/log.txt
sed -i 's|mercadec|Mercedes|g' /tmp/log.txt
sed -i 's|Sunshine-Alpha|Sunshine|g' /tmp/log.txt
sed -i 's|francojoshua|Joshua|g' /tmp/log.txt
sed -i 's|angelinaayoubi|Angie|g' /tmp/log.txt
sed -i 's|kvallejo6|Kimberly|g' /tmp/log.txt
sed -i 's|ManavMahida|Manav|g' /tmp/log.txt
sed -i 's|cmucung|Carmen|g' /tmp/log.txt
sed -i 's|Eunice-Son|Eunice|g' /tmp/log.txt
sed -i 's|eileen-png|Eileen|g' /tmp/log.txt
sed -i 's|Bobvius|Louis|g' /tmp/log.txt
sed -i 's|Tffny3|Tiffany|g' /tmp/log.txt
sed -i 's|sambenni|Sam|g' /tmp/log.txt
sed -i 's|Togundar|Temi|g' /tmp/log.txt
sed -i 's|marcuslynes|Marcuslyne|g' /tmp/log.txt
sed -i 's|nicolasw-cmu|Nicolas|g' /tmp/log.txt
fi
gource /tmp/log.txt -s 1 --log-format git --stop-at-end --title "py-hubmap-inventory" \
--1920x1080 \
--seconds-per-day 1 \
--user-image-dir images \
--stop-at-end \
--highlight-users \
--logo images/logo.png \
--start-date "2023-07-06" \
--stop-date "2023-08-05" \
-o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 \
-preset ultrafast -crf 1 -threads 0 -bf 0 output.mp4 \
2> /dev/null
if [ -f output.log ]; then
rm -f output.log
fi
if [ -f output.mp4 ]; then
cp output.mp4 "py-brain-inventory-$(date +%Y%m%d).mp4"
fi