X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=xfonts-traditional.git;a=blobdiff_plain;f=debian%2Fxfonts-traditional.prerm;h=7578f5250491227af21748ef7441bd33f90ce31a;hp=4dc7f2ca59921be6b762dd1ec87dbcfdae900deb;hb=2122f675a35e21edcdd7e27bfe3af01fa8835e9f;hpb=12fa1ef82427acbdd0b55b8dc3454dbffac47be2 diff --git a/debian/xfonts-traditional.prerm b/debian/xfonts-traditional.prerm old mode 100644 new mode 100755 index 4dc7f2c..7578f52 --- a/debian/xfonts-traditional.prerm +++ b/debian/xfonts-traditional.prerm @@ -3,35 +3,49 @@ set -e . /usr/share/debconf/confmodule +#DEBHELPER# + +/usr/share/xfonts-traditional/checkfiles prerm "$@" + case "$1" in remove) - echo 'Checking that "fixed" is not from xfonts-traditional..." - - if grep '^fixed[ ][ ]*-trad-'; then - cat >&2 <&2 + exit 1 + fi fi - ;; + for d in /usr/share/fonts/X11 /usr/local/share/fonts/X11; do + if ! test -e "$d"; then continue; fi - find /usr/share/fonts/X11 /usr/local/share/fonts/X11 \ - -type f \ - \( -name xfonts-traditional.log -o \ - -name xfonts-traditional.done -o - -name xfonts-traditional.done.new -o - -name trad--\*.pcf.gz.new \) \ - -print0 | xargs -0r rm - - find /usr/share/fonts/X11 /usr/local/share/fonts/X11 \ - -type f \ - -name trad--\*.pcf.gz \ - -print0 | xargs -0r rm + find "$d" \ + -type f \ + \( -name xfonts-traditional.log -o \ + -name xfonts-traditional.done -o \ + -name xfonts-traditional.done.new -o \ + -name trad--\*.pcf.gz.new \) \ + -print0 | xargs -0r rm -- + + find "$d" \ + -type f \ + -name trad--\*.pcf.gz \ + -print0 | xargs -0r rm -- + done + + ;; esac