diff options
author | joey <joey> | 2002-01-27 00:25:37 +0000 |
---|---|---|
committer | joey <joey> | 2002-01-27 00:25:37 +0000 |
commit | 4f577ba14b2e6e8571246717a1eec408c9b618ae (patch) | |
tree | 4b6df3d7ebe79466ad063ae8ce1c7b406771a7d9 /autoscripts | |
parent | d6f3bdb1c18ff73a755949134c8850a7b075289f (diff) | |
download | debhelper-4f577ba14b2e6e8571246717a1eec408c9b618ae.tar.gz |
r503: * dh_installman: more documentation about the .TH line. Closes: #129205
* dh_installxfonts:
- Packages that use this should depend on xutils. See man page.
- However, if you really want to, you can skip the dep, and the
postinst will avoid running program that arn't available. Closes: #131053
- Use update-fonts-dir instead of handling encodings ourselves. Yay!
- Pass only the last component of the directory name to
update-fonts-*, since that's what they perfer now.
- Other changes, chould fully comply with Debian X font policy now.
Diffstat (limited to 'autoscripts')
-rw-r--r-- | autoscripts/postinst-xfonts | 20 | ||||
-rw-r--r-- | autoscripts/postrm-xfonts | 23 |
2 files changed, 4 insertions, 39 deletions
diff --git a/autoscripts/postinst-xfonts b/autoscripts/postinst-xfonts index af02e124..4c5ab1b8 100644 --- a/autoscripts/postinst-xfonts +++ b/autoscripts/postinst-xfonts @@ -1,19 +1,3 @@ -makefontdir() { - ENCDIR=/usr/lib/X11/fonts/encodings - if [ -d $ENCDIR -a -d $ENCDIR/large ]; then - /usr/bin/X11/mkfontdir -e $ENCDIR -e $ENCDIR/large "$@" - else - /usr/bin/X11/mkfontdir "$@" - fi -} - -if [ "$1" = "configure" ]; then - fontdirs="#FONTDIRS#" - updatecmds="#UPDATECMDS#" - - for dir in $fontdirs; do - for currentcmd in $updatecmds; do - $currentcmd /usr/lib/X11/fonts/$dir - done - done +if [ -x /usr/sbin/update-fonts-dir ]; then + #CMDS# fi diff --git a/autoscripts/postrm-xfonts b/autoscripts/postrm-xfonts index 29cec435..a9afcabe 100644 --- a/autoscripts/postrm-xfonts +++ b/autoscripts/postrm-xfonts @@ -1,22 +1,3 @@ -makefontdir() { - ENCDIR=/usr/lib/X11/fonts/encodings - if [ -d $ENCDIR -a -d $ENCDIR/large ]; then - /usr/bin/X11/mkfontdir -e $ENCDIR -e $ENCDIR/large "$@" - else - /usr/bin/X11/mkfontdir "$@" - fi -} - -fontdirs="#FONTDIRS#" -updatecmds="#UPDATECMDS#" - -if [ "$1" = "purge" -o "$1" = "remove" -o "$1" = "disappear" ]; then - for currentdir in $fontdirs; do - longdir=/usr/lib/X11/fonts/$currentdir - if [ -d $longdir ]; then - for currentcmd in $updatecmds; do - $currentcmd $longdir - done - fi - done +if [ "$1" != "upgrade" -a -x /usr/sbin/update-fonts-dir ]; then + #CMDS# fi |