#!/bin/sh

set -e

lsbom -s /Library/Receipts/latex-make.pkg/Contents/Archive.bom | \
while read file ; do
    rm /$file || true
done
rmdir /usr/local/teTeX/share/texmf.local/doc/latex/latex-make || true
rmdir /usr/local/teTeX/share/texmf.local/tex/latex/latex-make || true

rm -r /Library/Receipts/latex-make.pkg
rm -r /Library/Receipts/uninstall-latex-make.pkg

texhash || true
