X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autoscripts%2Fpostrm-xfonts;h=cd476a3ddc42c5f550a8fd12dd85599266f474c4;hb=18a0da8092ea9f3dc48bca92b36f592af25a608d;hp=29cec43590754312e11bd10e3c2972d7ca172a93;hpb=7b068400acb737a64e1f8e5c6b23d72b8dd5c1eb;p=debhelper.git diff --git a/autoscripts/postrm-xfonts b/autoscripts/postrm-xfonts index 29cec43..cd476a3 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 [ -x "`which update-fonts-dir 2>/dev/null`" ]; then + #CMDS# fi