aboutsummaryrefslogtreecommitdiff
path: root/osx/uninstall-pandoc
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-08-26 15:46:44 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-08-26 15:46:44 +0000
commit71b70418f68eef7c5b9214fb1f5989b51c70b9e3 (patch)
treeceefd2609d66dea2ace6c7e0b51c8714a48c97d7 /osx/uninstall-pandoc
parentbdb55edd1845d2963a3b06316e5cdb25a3ca0a15 (diff)
downloadpandoc-71b70418f68eef7c5b9214fb1f5989b51c70b9e3.tar.gz
Removed osx-package specific files, and references to them
in Makefiles. git-svn-id: https://pandoc.googlecode.com/svn/trunk@906 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'osx/uninstall-pandoc')
-rwxr-xr-xosx/uninstall-pandoc43
1 files changed, 0 insertions, 43 deletions
diff --git a/osx/uninstall-pandoc b/osx/uninstall-pandoc
deleted file mode 100755
index db2001da1..000000000
--- a/osx/uninstall-pandoc
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/sh -e
-# This script (when run with root permissions) uninstalls
-# everything installed by the Pandoc Mac OS X installer.
-
-if [ "`id -u`" != 0 ]; then \
- echo "This script must be run with root privileges:"; \
- echo "sudo /usr/local/bin/uninstall-pandoc"; \
- exit 1; \
-fi
-
-MAN_PAGES="pandoc.1 markdown2pdf.1 html2markdown.1 hsmarkdown.1"
-EXECUTABLES=`echo $MAN_PAGES | sed -e 's#\.1##g'`
-EXECUTABLES="$EXECUTABLES uninstall-pandoc"
-DOCUMENTS="`ls /usr/local/share/doc/pandoc`"
-TOREMOVE=""
-for F in $EXECUTABLES; do
- TOREMOVE="$TOREMOVE /usr/local/bin/$F";
-done
-for F in $MAN_PAGES; do
- TOREMOVE="$TOREMOVE /usr/local/share/man/man1/$F";
-done
-for F in $DOCUMENTS; do
- TOREMOVE="$TOREMOVE /usr/local/share/doc/pandoc/$F";
-done
-TOREMOVE="$TOREMOVE /usr/local/share/doc/pandoc"
-
-echo "This script will remove all of the files installed"
-echo "by the Pandoc Mac OS X installer: $TOREMOVE"
-echo "Are you sure you want to continue with this?"
-
-OPTIONS="Continue Quit"
-select opt in $OPTIONS; do
- if [ "$opt" = "Quit" ]; then
- exit 0
- elif [ "$opt" = "Continue" ]; then
- echo "Removing..."
- rm -rv $TOREMOVE
- echo "Successfully removed Pandoc."
- exit 0
- else
- echo "Bad option."
- fi
-done