Commit | Line | Data |
---|---|---|
1da0abae AE |
1 | #!/bin/bash |
2 | # | |
3 | # Copyright (C) 2012-2020 Ruben Rodriguez <ruben@trisquel.info> | |
4 | # Copyright (C) 2020 Andrew Engelbrecht <andrew@fsf.org> | |
5 | # | |
6 | # This program is free software; you can redistribute it and/or modify | |
7 | # it under the terms of the GNU General Public License as published by | |
8 | # the Free Software Foundation; either version 2 of the License, or | |
9 | # (at your option) any later version. | |
10 | # | |
11 | # This program is distributed in the hope that it will be useful, | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | # GNU General Public License for more details. | |
15 | # | |
16 | # You should have received a copy of the GNU General Public License | |
17 | # along with this program; if not, write to the Free Software | |
18 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
19 | # | |
20 | ||
21 | set -e | |
22 | ||
23 | usage(){ | |
24 | echo | |
25 | echo You need to run this script as root | |
3380d44f AE |
26 | echo Usage: sudo $0 sources.tar /dev/sdX |
27 | echo Example: sudo $0 trisquel_11.0_sources.tar /dev/sdb | |
1da0abae AE |
28 | echo |
29 | echo WARNING!: This script can bite your dog. Use it with care, backup your data. | |
30 | echo | |
31 | exit 1 | |
32 | } | |
33 | ||
34 | [ $(id -u) != 0 ] && usage | |
35 | [ $# != 2 ] && usage | |
36 | ||
3380d44f | 37 | TAR=$1 |
1da0abae AE |
38 | DEV=$2 |
39 | ||
1da0abae AE |
40 | DEVTMP=$(mktemp -d) |
41 | ||
1da0abae AE |
42 | mount ${DEV}1 $DEVTMP |
43 | ||
44 | ||
45 | ### | |
46 | ### copy over checksum files | |
47 | ### | |
48 | ||
49 | ||
50 | mkdir -p $DEVTMP/fsf/GNUAV/ | |
51 | mkdir -p $DEVTMP/source/ | |
52 | ||
53 | cp checksums-media.sha256 $DEVTMP/fsf/GNUAV/ | |
2aaa98d4 | 54 | cp checksums.sha256 $DEVTMP/source/ |
1da0abae AE |
55 | |
56 | ||
774d2a34 AE |
57 | ### |
58 | ### copy over html files | |
59 | ### | |
60 | ||
61 | ||
62 | cp html/* $DEVTMP/fsf/ | |
11d5ee72 | 63 | rm -f $DEVTMP/fsf/reset.css |
774d2a34 AE |
64 | |
65 | ||
1da0abae AE |
66 | ### |
67 | ### download missing media from the Web | |
68 | ### | |
69 | ||
292e4062 | 70 | |
591213f1 AE |
71 | old_dir="$(pwd)" |
72 | ||
1da0abae AE |
73 | cd $DEVTMP/fsf/GNUAV |
74 | ||
11d5ee72 | 75 | mkdir -p lp2023_audio ; cd lp2023_audio |
cbae42d1 | 76 | |
ca2dde5a | 77 | # |
cbae42d1 | 78 | # In GMG Postgres DB: select * from core__mediafiles where file_path like '%2023%.ogg'; |
ca2dde5a | 79 | # |
cbae42d1 AE |
80 | |
81 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2765/lp2023-jupiter-sunday-1720.ogg' | |
82 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2766/lp2023-jupiter-saturday-1225.ogg' | |
83 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2767/lp2023-jupiter-sunday-1430.ogg' | |
84 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2768/lp2023-neptune-saturday-1650.ogg' | |
85 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2769/lp2023-saturn-saturday-1405.ogg' | |
86 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2770/lp2023-jupiter-saturday-1000.ogg' | |
87 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2771/lp2023-neptune-sunday-1055.ogg' | |
88 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2772/lp2023-jupiter-saturday-1555.ogg' | |
89 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2773/lp2023-neptune-sunday-1525.ogg' | |
90 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2774/lp2023-jupiter-sunday-1055.ogg' | |
91 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2775/lp2023-neptune-saturday-1500.ogg' | |
92 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2776/lp2023-saturn-saturday-1000.ogg' | |
93 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2777/lp2023-neptune-saturday-1405.ogg' | |
94 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2778/lp2023-jupiter-sunday-1335.ogg' | |
95 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2779/lp2023-jupiter-saturday-1405.ogg' | |
96 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2780/lp2023-neptune-sunday-1155.ogg' | |
97 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2781/lp2023-saturn-sunday-1000.ogg' | |
98 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2782/lp2023-jupiter-saturday-1500.ogg' | |
99 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2783/lp2023-saturn-saturday-1125.ogg' | |
100 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2784/lp2023-jupiter-saturday-1750.ogg' | |
101 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2785/lp2023-neptune-sunday-1430.ogg' | |
102 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2786/lp2023-neptune-sunday-1335.ogg' | |
103 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2787/lp2023-saturn-sunday-1055.ogg' | |
104 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2788/lp2023-jupiter-sunday-1155.ogg' | |
105 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2789/lp2023-jupiter-saturday-1125.ogg' | |
106 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2790/lp2023-neptune-sunday-1000.ogg' | |
107 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2791/lp2023-neptune-saturday-1555.ogg' | |
108 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2792/lp2023-jupiter-sunday-1620.ogg' | |
109 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2793/lp2023-jupiter-sunday-1525.ogg' | |
110 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2794/lp2023-jupiter-saturday-1650.ogg' | |
111 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2795/lp2023-saturn-saturday-1650.ogg' | |
112 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2796/lp2023-saturn-saturday-1555.ogg' | |
113 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2797/lp2023-neptune-sunday-1620.ogg' | |
114 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2798/lp2023-saturn-saturday-1500.ogg' | |
115 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2866/lp2023-jupiter-sunday-1000.ogg' | |
116 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2875/lp2023-saturn-sunday-1620.ogg' | |
9b8b6ca8 AE |
117 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/3443/lp2023-bigcode-may-30.ogg' -O lp2023-saturn-sunday-1335.ogg |
118 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/3445/lp2023-worldvista-june-05.ogg' -O lp2023-saturn-sunday-1430.ogg | |
cbae42d1 | 119 | |
1da0abae AE |
120 | |
121 | cd .. | |
122 | ||
602d24b8 AE |
123 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/415/snowden-final.webm' -O lp2016_snowden.webm |
124 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/167/FSF_640x360.webm' | |
0970b1a2 | 125 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2070/FSFKeynotewithSlidesHighRes.ogg' |
602d24b8 | 126 | wget 'https://static.fsf.org/nosvn/FSF30-video/FSF_30_720p.webm' |
602d24b8 AE |
127 | wget 'https://static.fsf.org/nosvn/member-cards/extra-media/2022-02-07/why-free-software.webm' |
128 | wget 'https://static.fsf.org/nosvn/member-cards/extra-media/2022-02-07/fsfs-ii-2-1.pdf' | |
129 | wget 'https://audio-video.gnu.org/video/TEDxGE2014_Stallman05_LQ.webm' | |
130 | ||
131 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2746/escape-to-freedom-720p.webm' | |
132 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2745/Fight-to-Repair-720p.webm' | |
133 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2744/FSF-Rewind-720p.webm' | |
134 | ||
135 | ||
3a1fa005 AE |
136 | ### |
137 | ### media included in trisquel_11.0-fsf_amd64.iso | |
138 | ### | |
139 | # | |
140 | # other/benjamin_mako_hill-revealing_errors.ogg | |
141 | # other/benjamin_mako_hill-revealing_errors.txt | |
142 | # other/bradley_kuhn-software_freedom_and_the_gnu_generation.ogg | |
143 | # other/bradley_kuhn-software_freedom_and_the_gnu_generation.txt | |
144 | # other/eben_moglen-free_software_and_free_media.ogg | |
145 | # other/eben_moglen-free_software_and_free_media.txt | |
146 | # other/fsf-2009-jeremyallison.ogv | |
147 | # other/fsf-2009-jeremyallison.txt | |
148 | # other/fsf-2009-peterbrown.ogv | |
149 | # other/fsf-2009-peterbrown.txt | |
150 | # other/fsf-shoetool-360.txt | |
151 | # other/fsf-shoetool-360.webm | |
152 | # other/stephen_fry-happy_birthday_gnu.ogg | |
153 | # other/stephen_fry-happy_birthday_gnu.ogv | |
154 | # other/stephen_fry-happy_birthday_gnu.txt | |
155 | # other/The-University-of-Costumed-Heroes-360p.txt | |
156 | # other/The-University-of-Costumed-Heroes-360p.webm | |
157 | # rms/rms-copyright_versus_community_in_the_age_of_computer_networks.ogg | |
158 | # rms/rms-copyright_versus_community_in_the_age_of_computer_networks.txt | |
159 | # rms/rms-essays.pdf | |
160 | # rms/rms-essays.txt | |
161 | # rms/rms-free_software_freedom_and_community.ogg | |
162 | # rms/rms-free_software_freedom_and_community.txt | |
163 | # rms/rms-gplv3_launch.ogg | |
164 | # rms/rms-gplv3_launch.txt | |
165 | # rms/rms-patents_barriers_to_development.ogg | |
166 | # rms/rms-patents_barriers_to_development.txt | |
167 | # rms/rms-the_dangers_of_software_patents.ogg | |
168 | # rms/rms-the_dangers_of_software_patents.txt | |
169 | # rms/rms-what_is_free_software.ogg | |
170 | # rms/rms-what_is_free_software.txt | |
1da0abae | 171 | |
6eb2a438 | 172 | |
5d0e9858 | 173 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2763/lp2023-jupiter-sunday-1720.webm' -O lp2023_repair.webm |
3a1fa005 | 174 | wget 'https://media.libreplanet.org/mgoblin_media/media_entries/2799/lp2023-jupiter-saturday-1225.webm' -O lp2023_education.webm |
6eb2a438 | 175 | |
1da0abae | 176 | ### |
ca2dde5a | 177 | ### copy over Trisquel 11 sources |
1da0abae AE |
178 | ### |
179 | ||
180 | ||
6b762082 | 181 | tar -C $DEVTMP/ --no-same-owner --touch --no-overwrite-dir -xvf $TAR || true |
1da0abae AE |
182 | |
183 | ||
184 | ### | |
185 | ### clean up | |
186 | ### | |
187 | ||
188 | ||
972be85f AE |
189 | sync |
190 | sleep 3 | |
191 | ||
591213f1 AE |
192 | cd "$old_dir" |
193 | ||
1da0abae | 194 | umount $DEVTMP |
1da0abae AE |
195 | |
196 | rmdir $DEVTMP | |
1da0abae AE |
197 | |
198 | sync | |
199 | ||
56b2df7e AE |
200 | echo |
201 | echo "The FSF member card build is complete! : )" | |
202 | echo | |
203 |