-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcollabora-update
executable file
·79 lines (65 loc) · 2.25 KB
/
collabora-update
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
result=$'\n'
#update libreoffice 2024
echo "################################################"
echo " libreoffice_2024 "
echo "################################################"
cd /home/lpranam/work/collabora/libreoffice_2024/
brach=$(git branch --show-current)
if [ "$brach" = "distro/collabora/co-24.04" ]; then
git pull -r
make
else
result+=$'Libreoffice 2024 is not updated\n'
fi
#update online master
echo "################################################"
echo " online_master "
echo "################################################"
cd /home/lpranam/work/collabora/online_master/
brach=$(git branch --show-current)
if [ "$brach" = "master" ]; then
git fetch upstream
git merge upstream/master
make -j
else
result+=$'Online Master is not updated\n'
fi
#update libreoffice 2023
echo "################################################"
echo " libreoffice_2023 "
echo "################################################"
cd /home/lpranam/work/collabora/libreoffice_2023/
brach=$(git branch --show-current)
if [ "$brach" = "distro/collabora/co-23.05" ]; then
git pull -r
make
else
result+=$'Libreoffice 2023 is not updated\n'
fi
#update online master
echo "################################################"
echo " online_2023 "
echo "################################################"
cd /home/lpranam/work/collabora/online_2023/
brach=$(git branch --show-current)
if [ "$brach" = "distro/collabora/co-23.05" ]; then
git fetch upstream
git merge upstream/distro/collabora/co-23.05
make -j
else
result+=$'Online 2023 is not updated\n'
fi
#update libreoffice master
echo "################################################"
echo " libreoffice_master "
echo "################################################"
cd /home/lpranam/work/collabora/libreoffice_master/
brach=$(git branch --show-current)
if [ "$brach" = "master" ]; then
git pull -r
make
else
result+=$'Libreoffice master is not updated\n'
fi
echo -n "$result"
notify-send --app-name=Collabora --icon="/usr/share/notificationhelper/collabora_symbol.png" "Build Complete" && paplay /usr/share/sounds/build_complete.ogg