diff options
-rwxr-xr-x | build.sh | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -14,17 +14,27 @@ ttf_filter() { | |||
14 | 14 | ||
15 | export_fonts() { | 15 | export_fonts() { |
16 | for i in src/*; do | 16 | for i in src/*; do |
17 | local file_name=$(basename "${i%.*}") | 17 | local file_name |
18 | ttf_filter "$i" "build/ttf/$file_name.ttf" | 18 | file_name=$(basename "${i%.*}") |
19 | ff_filter "$i" "build/otb/$file_name.otb" | 19 | ttf_filter "$i" "build/scientifica/ttf/$file_name.ttf" |
20 | ff_filter "$i" "build/bdf/$file_name.bdf" | 20 | ff_filter "$i" "build/scientifica/otb/$file_name.otb" |
21 | ff_filter "$i" "build/scientifica/bdf/$file_name.bdf" | ||
21 | done | 22 | done |
22 | } | 23 | } |
23 | 24 | ||
24 | main() { | 25 | main() { |
25 | rm -rf build | 26 | rm -rf build |
26 | mkdir -p build/{otb,ttf,bdf} | 27 | mkdir -p build/scientifica/{otb,ttf,bdf} |
28 | |||
29 | echo "[~] Exporting fonts ..." | ||
27 | export_fonts | 30 | export_fonts |
31 | |||
32 | echo "[~] Entering build directory ..." | ||
33 | cd build || echo "[!] Failed to enter build directory!" | ||
34 | tar c --file scientifica.tar scientifica | ||
35 | echo "[~] Leaving build directory ..." | ||
36 | |||
37 | echo "[!] Done!" | ||
28 | } | 38 | } |
29 | 39 | ||
30 | main | 40 | main |