diff options
author | James Meyer <james.meyer@operamail.com> | 2012-08-07 19:12:33 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-08-07 19:12:33 (GMT) |
commit | 22ea84ac6f7d6bee05c12e3bff8672fbad753ea3 (patch) | |
tree | d5089aa3b2779c672338075fcb0935752b1e1544 /abs/core/ttf-dejavu/ttf-dejavu.install | |
parent | fd255056dd9f3aa7f2d61c71497fc98039497907 (diff) | |
download | linhes_pkgbuild-22ea84ac6f7d6bee05c12e3bff8672fbad753ea3.zip linhes_pkgbuild-22ea84ac6f7d6bee05c12e3bff8672fbad753ea3.tar.gz linhes_pkgbuild-22ea84ac6f7d6bee05c12e3bff8672fbad753ea3.tar.bz2 |
Xorg update part1
Diffstat (limited to 'abs/core/ttf-dejavu/ttf-dejavu.install')
-rw-r--r-- | abs/core/ttf-dejavu/ttf-dejavu.install | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/abs/core/ttf-dejavu/ttf-dejavu.install b/abs/core/ttf-dejavu/ttf-dejavu.install index f831cb1..47ecf87 100644 --- a/abs/core/ttf-dejavu/ttf-dejavu.install +++ b/abs/core/ttf-dejavu/ttf-dejavu.install @@ -4,8 +4,9 @@ configs=(20-unhint-small-dejavu-sans-mono.conf 57-dejavu-sans-mono.conf 57-dejavu-sans.conf 57-dejavu-serif.conf) + post_install() { - pushd /etc/fonts/conf.d > /dev/null + pushd etc/fonts/conf.d > /dev/null for config in "${configs[@]}"; do ln -sf ../conf.avail/${config} . done @@ -17,13 +18,13 @@ post_install() { post_upgrade() { if [ `vercmp 2.30-2 $2` -gt 0 ]; then - pushd /etc/fonts/conf.d > /dev/null + pushd etc/fonts/conf.d > /dev/null for config in "${configs[@]}"; do ln -sf ../conf.avail/${config} . done popd > /dev/null fi - for config in /etc/fonts/conf.d/*; do + for config in etc/fonts/conf.d/*; do if [ ! -f ${config} ]; then rm -f ${config} fi @@ -35,7 +36,7 @@ post_upgrade() { pre_upgrade() { # Link new config files not present on system yet - pushd /etc/fonts/conf.d > /dev/null + pushd etc/fonts/conf.d > /dev/null for config in "${configs[@]}"; do if [ ! -f ../conf.avail/${config} ]; then ln -sf ../conf.avail/${config} . @@ -45,7 +46,7 @@ pre_upgrade() { } post_remove() { - pushd /etc/fonts/conf.d > /dev/null + pushd etc/fonts/conf.d > /dev/null for config in "${configs[@]}"; do rm -f ${config} done |