Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/13rac1/emojione-color-font.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Erickson <eosrei@gmail.com>2016-04-16 01:25:58 +0300
committerBrad Erickson <eosrei@gmail.com>2016-04-16 01:58:28 +0300
commitbd12b2c7ffbf7238e00a662e33593ed01bbfe98b (patch)
tree84aa1effac8cd1b2b24198605f3c61920c4deb4e /linux/install.sh
parentcc38faa4eb3cb04a44aa35221c913310fab49699 (diff)
linux: Update fontconfig install destination
The provided font config was being installed at: ~/.config/fontconfig/fonts.conf it is better to install at: ~/.config/fontconfig/conf.d/56-emojione-color.conf Adds uninstall.sh Fixes #29
Diffstat (limited to 'linux/install.sh')
-rwxr-xr-xlinux/install.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/linux/install.sh b/linux/install.sh
index bb1fff9..6df56e7 100755
--- a/linux/install.sh
+++ b/linux/install.sh
@@ -20,25 +20,27 @@ if [ -z "$XDG_DATA_HOME" ];then
fi
# Remove font from old directory if exists (temporary backwards compat)
-if [ -f ~/.fonts/EmojiOneColor-SVGinOT.ttf ];then
- echo "Removing the font from ~/.fonts"
- rm ~/.fonts/EmojiOneColor-SVGinOT.ttf
+if [ -f $HOME/.fonts/EmojiOneColor-SVGinOT.ttf ];then
+ echo "Removing the font from $HOME/.fonts"
+ rm $HOME/.fonts/EmojiOneColor-SVGinOT.ttf
fi
# Create a user font directory
mkdir -p $XDG_DATA_HOME/fonts
echo "Installing the font in: $XDG_DATA_HOME/fonts/"
cp EmojiOneColor-SVGinOT.ttf $XDG_DATA_HOME/fonts/
+
# Create a font config directory
FONTCONFIG=$HOME/.config/fontconfig
-mkdir -p $FONTCONFIG
+mkdir -p $FONTCONFIG/conf.d/
# Check for an existing font config
if [ -f $FONTCONFIG/fonts.conf ];then
+ # (temporary backwards compat)
echo "Existing fonts.conf backed up to fonts.bak"
cp $FONTCONFIG/fonts.conf $FONTCONFIG/fonts.bak
fi
# Install fonts.conf
-cp fontconfig/user-bitstream-vera-fonts.conf $FONTCONFIG/fonts.conf
+cp fontconfig/56-emojione-color.conf $FONTCONFIG/conf.d/
echo "Clearing font cache"
fc-cache -f