X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autoscripts%2Fpostrm-xfonts;h=cd476a3ddc42c5f550a8fd12dd85599266f474c4;hb=e2a6d4cec4a7ee952cf6a7f250d80f1d75a38f95;hp=851b61f588f47baa99db676fe598411e6c59c60c;hpb=fc94604df8b0551ed52d78f735a65d1f3924ed71;p=debhelper.git diff --git a/autoscripts/postrm-xfonts b/autoscripts/postrm-xfonts index 851b61f..cd476a3 100644 --- a/autoscripts/postrm-xfonts +++ b/autoscripts/postrm-xfonts @@ -1,27 +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#" - -for currentdir in $fontdirs; do - longdir=/usr/lib/X11/fonts/$currentdir - if [ -d $longdir ]; then - for file in fonts.dir fonts.alias encodings.dir; do - rm -f $longdir/$file - done - if [ $(find $longdir| wc -l) -eq 1 ]; then - rmdir -p $longdir - else - for currentcmd in $updatecmds; do - $currentcmd $longdir - done - fi - fi -done +if [ -x "`which update-fonts-dir 2>/dev/null`" ]; then + #CMDS# +fi