Skip to content

Commit 91897e5

Browse files
committed
Misc: Drop graphics submodule
It is not really useful most of the time
1 parent d9edab8 commit 91897e5

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.gitmodules

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[submodule "scripts/graphics"]
2-
path = scripts/graphics
3-
url = https://github.com/WeblateOrg/graphics.git
41
[submodule "scripts/spdx-license-list"]
52
path = scripts/spdx-license-list
63
url = https://github.com/spdx/license-list-data.git

scripts/graphics

-1
This file was deleted.

scripts/update-graphics

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
#!/bin/sh
22

3+
if [ ! -d ../graphics/ ] ; then
4+
echo "Graphics repository missing!"
5+
fi
6+
37
# Widgets
4-
cp scripts/graphics/widgets/*.png weblate/static/widget-images/
8+
cp ../graphics/widgets/*.png weblate/static/widget-images/
59

610
# SVG
7-
cp scripts/graphics/logo/weblate.svg scripts/graphics/logo/weblate-black.svg weblate/static/
11+
cp ../graphics/logo/weblate.svg ../graphics/logo/weblate-black.svg weblate/static/
812
./scripts/optimize-svg weblate/static/weblate*.svg
913

1014
# favicon
11-
cp scripts/graphics/logo/weblate.ico weblate/static/favicon.ico
15+
cp ../graphics/logo/weblate.ico weblate/static/favicon.ico
1216

1317
# Scaled logos
1418
for size in 24 32 80 128 150 180 192 512 ; do
15-
cp scripts/graphics/logo/weblate-background-$size.png weblate/static/weblate-$size.png
19+
cp ../graphics/logo/weblate-background-$size.png weblate/static/weblate-$size.png
1620
done
1721
for size in 16 32 128 1024 ; do
18-
cp scripts/graphics/logo/weblate-logo-$size.png weblate/static/logo-$size.png
22+
cp ../graphics/logo/weblate-logo-$size.png weblate/static/logo-$size.png
1923
done
2024

2125
# Email logo
22-
cp scripts/graphics/logo/weblate-logo-48.png weblate/static/email-logo.png
26+
cp ../graphics/logo/weblate-logo-48.png weblate/static/email-logo.png
2327

2428
# Widgets
25-
cp scripts/graphics/open-graph/Og-Template.png weblate/static/widget-images/open-graph.png
29+
cp ../graphics/open-graph/Og-Template.png weblate/static/widget-images/open-graph.png

0 commit comments

Comments
 (0)