-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathupdate_targz_store.sh
executable file
·153 lines (141 loc) · 4.32 KB
/
update_targz_store.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
#!/bin/bash
set -xe
HERE=`pwd`
TARGZ=${HERE}/targz_store
WORK=${HERE}/work_targz_store
rm -rf ${WORK}
mkdir -vp ${WORK}
#-----------------------------------------------------
#-----------------------------------------------------
for i in "websockify-js" "noVNC"; do
cd ${WORK}
git clone --depth=1 https://github.com/novnc/${i}.git
cd ${WORK}/${i}
COMMIT=$(git log --pretty=format:"%H")
cd ${WORK}
tar zcvf ${i}_${COMMIT}.tar.gz ${i}
rm -rf ${i}
mv ${i}_${COMMIT}.tar.gz ${TARGZ}
done
#-----------------------------------------------------
#-----------------------------------------------------
cd ${WORK}
git clone --depth=1 https://github.com/nginx/nginx.git
cd ${WORK}/nginx
COMMIT=$(git log --pretty=format:"%H")
cd ${WORK}
tar zcvf nginx_${COMMIT}.tar.gz nginx
rm -rf nginx
mv nginx_${COMMIT}.tar.gz ${TARGZ}
#-----------------------------------------------------
#-----------------------------------------------------
cd ${WORK}
git clone --depth=1 https://github.com/NixOS/patchelf.git
cd ${WORK}/patchelf
COMMIT=$(git log --pretty=format:"%H")
./bootstrap.sh
./configure
cd ${WORK}
tar zcvf patchelf_${COMMIT}.tar.gz patchelf
rm -rf patchelf
mv patchelf_${COMMIT}.tar.gz ${TARGZ}
#-----------------------------------------------------
#-----------------------------------------------------
cd ${WORK}
git clone --depth=1 https://github.com/containers/crun.git
cd ${WORK}/crun
COMMIT=$(git log --pretty=format:"%H")
./autogen.sh
./configure
cd ${WORK}
tar zcvf crun_${COMMIT}.tar.gz crun
rm -rf crun
mv crun_${COMMIT}.tar.gz ${TARGZ}
#-----------------------------------------------------
#-----------------------------------------------------
cd ${WORK}
git clone --depth=1 https://github.com/tmux/tmux.git
cd ${WORK}/tmux
COMMIT=$(git log --pretty=format:"%H")
sh autogen.sh
cd ${WORK}
tar zcvf tmux_${COMMIT}.tar.gz tmux
rm -rf tmux
mv tmux_${COMMIT}.tar.gz ${TARGZ}
#-----------------------------------------------------
#-----------------------------------------------------
cd ${WORK}
git clone --depth=1 https://git.qemu.org/git/qemu.git
cd ${WORK}/qemu
COMMIT=$(git log --pretty=format:"%H")
git submodule init
git submodule update --recursive
./scripts/archive-source.sh ${WORK}/qemu.tar.gz
cd ${WORK}
mkdir qemu_vip
cd ${WORK}/qemu_vip
tar xvf ${WORK}/qemu.tar.gz
meson subprojects download
cd ${WORK}
tar zcvf qemu_${COMMIT}.tar.gz qemu_vip
rm -rf qemu
rm -rf qemu_vip
rm -f qemu.tar.gz
mv qemu_${COMMIT}.tar.gz ${TARGZ}
#-----------------------------------------------------
#-----------------------------------------------------
cd ${WORK}
git clone --depth=1 https://github.com/openvswitch/ovs.git
cd ${WORK}/ovs
COMMIT=$(git log --pretty=format:"%H")
cd ${WORK}
tar zcvf ovs_${COMMIT}.tar.gz ovs
rm -rf ovs
mv ovs_${COMMIT}.tar.gz ${TARGZ}
#-----------------------------------------------------
#-----------------------------------------------------
cd ${WORK}
git clone --depth=1 https://gitlab.freedesktop.org/spice/spice-gtk.git
cd ${WORK}/spice-gtk
COMMIT=$(git log --pretty=format:"%H")
git submodule init
git submodule update --recursive
cd ${WORK}
tar zcvf spice-gtk_${COMMIT}.tar.gz spice-gtk
rm -rf spice-gtk
mv spice-gtk_${COMMIT}.tar.gz ${TARGZ}
#-----------------------------------------------------
#-----------------------------------------------------
cd ${WORK}
git clone --depth=1 https://gitlab.freedesktop.org/spice/spice-protocol.git
cd spice-protocol
COMMIT=$(git log --pretty=format:"%H")
cd ${WORK}
tar zcvf spice-protocol_${COMMIT}.tar.gz spice-protocol
rm -rf spice-protocol
mv spice-protocol_${COMMIT}.tar.gz ${TARGZ}
#-----------------------------------------------------
#-----------------------------------------------------
cd ${WORK}
git clone --depth=1 https://gitlab.freedesktop.org/spice/spice.git
cd spice
COMMIT=$(git log --pretty=format:"%H")
git submodule init
git submodule update --recursive
cd ${WORK}
tar zcvf spice_${COMMIT}.tar.gz spice
rm -rf spice
mv spice_${COMMIT}.tar.gz ${TARGZ}
#-----------------------------------------------------
#-----------------------------------------------------
cd ${WORK}
git clone --depth=1 https://gitlab.freedesktop.org/spice/usbredir.git
cd usbredir
COMMIT=$(git log --pretty=format:"%H")
cd ${WORK}
tar zcvf usbredir_${COMMIT}.tar.gz usbredir
rm -rf usbredir
mv usbredir_${COMMIT}.tar.gz ${TARGZ}
#-----------------------------------------------------
cd ${HERE}
rmdir work_targz_store