diff options
author | Akshay <[email protected]> | 2020-04-13 15:41:01 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2020-04-13 15:41:01 +0100 |
commit | 89e07b9540f99e2e56262a7430b0bfccc01e9fa2 (patch) | |
tree | b1328ac5cd62f5a5278d763ea7868982df1ec008 | |
parent | 8a1f36a567d3d4f3fcaf79a06eea9812c68faa57 (diff) |
add shellcheck lints, more verbose
-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 |