summaryrefslogtreecommitdiff
path: root/libre/xorg-fonts-100dpi-libre/xfonts.install
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2011-01-31 00:00:36 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2011-01-31 00:00:36 -0300
commit49c8d29b52ebff19d7106c32145f98051cd3131a (patch)
tree3f881db2da9dc8588f18ef6a17c4d9be7b232174 /libre/xorg-fonts-100dpi-libre/xfonts.install
parent5e1bf6d96c6812fa9f96b0f7a61ed4268e82aee2 (diff)
downloadabslibre-49c8d29b52ebff19d7106c32145f98051cd3131a.tar.gz
abslibre-49c8d29b52ebff19d7106c32145f98051cd3131a.tar.bz2
abslibre-49c8d29b52ebff19d7106c32145f98051cd3131a.zip
xorg-fonts-100dpi-libre-1.0.2-1
Diffstat (limited to 'libre/xorg-fonts-100dpi-libre/xfonts.install')
-rw-r--r--libre/xorg-fonts-100dpi-libre/xfonts.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/libre/xorg-fonts-100dpi-libre/xfonts.install b/libre/xorg-fonts-100dpi-libre/xfonts.install
new file mode 100644
index 000000000..3eb0455c9
--- /dev/null
+++ b/libre/xorg-fonts-100dpi-libre/xfonts.install
@@ -0,0 +1,20 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -f > /dev/null
+ mkfontscale /usr/share/fonts/Type1
+ mkfontdir /usr/share/fonts/Type1
+ echo "done."
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}
+
+op=$1
+shift
+
+$op $*