]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postrm-xfonts
cmake: Pass CPPFLAGS in CFLAGS. Closes: #668813 Thanks, Simon Ruderich for the patch...
[debhelper.git] / autoscripts / postrm-xfonts
index 016a63925b1d05afc2ac3909cbdd39b3f9ba13e4..cd476a3ddc42c5f550a8fd12dd85599266f474c4 100644 (file)
@@ -1,18 +1,3 @@
-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; 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