@@ -0,0 +1,47 @@
2+# This script (when run with root permissions) uninstalls
3+# everything installed by the Pandoc Mac OS X installer.
5+[ -f /usr/local/bin/pandoc ] || {
6+ echo "Pandoc does not appear to be installed."; \
10+if [ "`id -u`" != 0 ]; then \
11+ echo "This script must be run with sudo."; \
16+MAN_PAGES="pandoc.1 markdown2html.1 markdown2latex.1 html2markdown.1 latex2markdown.1 markdown2pdf.1"
17+EXECUTABLES=`echo $MAN_PAGES | sed -e 's#\.1##g'`
18+DOCUMENTS="`ls /usr/local/share/doc/pandoc`"
20+for F in $EXECUTABLES; do
21+ TOREMOVE="$TOREMOVE /usr/local/bin/$F";
23+for F in $MAN_PAGES; do
24+ TOREMOVE="$TOREMOVE /usr/local/share/man/man1/$F";
26+for F in $DOCUMENTS; do
27+ TOREMOVE="$TOREMOVE /usr/local/share/doc/pandoc/$F";
29+TOREMOVE="$TOREMOVE /usr/local/share/doc/pandoc"
31+echo "This script will remove all of the files installed"
32+echo "by the Pandoc Mac OS X installer: $TOREMOVE"
33+echo "Are you sure you want to continue with this?"
35+OPTIONS="Continue Quit"
36+select opt in $OPTIONS; do
37+ if [ "$opt" = "Quit" ]; then
39+ elif [ "$opt" = "Continue" ]; then
42+ echo "Successfully removed Pandoc."