summaryrefslogtreecommitdiff
path: root/tools/about/gen.sh
blob: c22ec59ad85a83dfa9ae4e965dd1bc215c7aac72 (plain)
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
#!/bin/bash


# Cf. https://stackoverflow.com/questions/59895/how-do-i-get-the-directory-where-a-bash-script-is-located-from-within-the-script/246128#246128
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

pushd $SCRIPT_DIR > /dev/null


# Obtention de la police Courier-10-Pitch-Bold
# --------------------------------------------

# https://fontsgeek.com/fonts/Courier-10-Pitch-Bold
# https://fontsgeek.com/terms-and-conditions

# => courier-10-pitch-bold_EQ97V.zip


# Courier 10 Pitch font missing after upgrade to 17.04?
# https://askubuntu.com/questions/914352/courier-10-pitch-font-missing-after-upgrade-to-17-04

# https://groups.google.com/g/trelby/c/CGkpcMBXW9U
# -> http://www.trelby.org/files/release/font/courier10point.zip
# --> https://web.archive.org/web/20140326080337/http://www.trelby.org/files/release/font/courier10point.zip

# https://news.ycombinator.com/item?id=18802628
# -> https://www.trelby.org/assets/courier10point.zip

# => courier10point.zip

if [ ! -f cour10p_b.ttf ]; then

    unzip -p courier10point.zip courier10point/cour10p_b.ttf > cour10p_b.ttf

fi


# Construction de l'image de fond
#--------------------------------

if [ $# -lt 1 -o $# -gt 2 ]; then

    echo "Usage: $0 <version> <edition>"
    exit 123

fi

python3 ./build.py $*

cp bg.png ../../src/data/images/about-bg.png

popd > /dev/null