aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-04-13 15:41:01 +0100
committerAkshay <[email protected]>2020-04-13 15:41:01 +0100
commit89e07b9540f99e2e56262a7430b0bfccc01e9fa2 (patch)
treeb1328ac5cd62f5a5278d763ea7868982df1ec008
parent8a1f36a567d3d4f3fcaf79a06eea9812c68faa57 (diff)
add shellcheck lints, more verbose
-rwxr-xr-xbuild.sh20
1 files changed, 15 insertions, 5 deletions
diff --git a/build.sh b/build.sh
index 2c7cc06..5816819 100755
--- a/build.sh
+++ b/build.sh
@@ -14,17 +14,27 @@ ttf_filter() {
14 14
15export_fonts() { 15export_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
24main() { 25main() {
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
30main 40main