2021-12-29 18:50:36 -06:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2022-08-12 13:37:15 -05:00
|
|
|
set -e
|
|
|
|
|
2021-12-29 18:50:36 -06:00
|
|
|
PATCHED_FONTS=./patched
|
|
|
|
INSTALL_DIR=~/.local/share/fonts/MonoLisa
|
|
|
|
|
2022-08-12 13:37:15 -05:00
|
|
|
mkdir -p $INSTALL_DIR
|
|
|
|
|
2023-01-07 10:14:43 -06:00
|
|
|
for font_dir in "$PATCHED_FONTS"/*; do
|
2022-03-02 13:36:54 -06:00
|
|
|
patched_dir="${font_dir##*/}"
|
|
|
|
echo ">>> $patched_dir"
|
2021-12-29 18:50:36 -06:00
|
|
|
|
2022-08-12 13:37:15 -05:00
|
|
|
dest=$INSTALL_DIR/$patched_dir
|
|
|
|
|
|
|
|
if [[ -d ${dest} ]]; then
|
2022-03-02 13:36:54 -06:00
|
|
|
echo "deleting existing version"
|
2023-01-07 10:14:43 -06:00
|
|
|
rm -rf "$dest"
|
2022-03-02 13:36:54 -06:00
|
|
|
fi
|
2021-12-29 18:50:36 -06:00
|
|
|
|
2023-02-06 13:57:00 -06:00
|
|
|
mkdir "$dest" && cp -rv "$font_dir"/* "$dest"
|
2021-12-29 18:50:36 -06:00
|
|
|
done
|
|
|
|
|
|
|
|
echo "Don't forget to run 'fc-cache -f -v'"
|