#
# Be sure to include multimarkdown in our PATH
-export PATH="$PWD:/usr/local/bin:$PATH"
+unset CDPATH
+SCRIPT="$0"
+while
+ DIR="$(cd -P -- "$(dirname -- "$SCRIPT")" && pwd)"
+ test -h "$SCRIPT"
+do
+ SCRIPT="$(readlink "$SCRIPT")"
+ [ "$SCRIPT" = "${SCRIPT#/}" ] && SCRIPT="$DIR/$SCRIPT"
+done
+PATH="$DIR:/usr/local/bin:$PATH"
+export PATH
which multimarkdown > /dev/null
if [ $? = 1 ]
#
# Be sure to include multimarkdown in our PATH
-export PATH="$PWD:/usr/local/bin:$PATH"
+unset CDPATH
+SCRIPT="$0"
+while
+ DIR="$(cd -P -- "$(dirname -- "$SCRIPT")" && pwd)"
+ test -h "$SCRIPT"
+do
+ SCRIPT="$(readlink "$SCRIPT")"
+ [ "$SCRIPT" = "${SCRIPT#/}" ] && SCRIPT="$DIR/$SCRIPT"
+done
+PATH="$DIR:/usr/local/bin:$PATH"
+export PATH
which multimarkdown > /dev/null
if [ $? = 1 ]
#
# Be sure to include multimarkdown in our PATH
-export PATH="$PWD:/usr/local/bin:$PATH"
+unset CDPATH
+SCRIPT="$0"
+while
+ DIR="$(cd -P -- "$(dirname -- "$SCRIPT")" && pwd)"
+ test -h "$SCRIPT"
+do
+ SCRIPT="$(readlink "$SCRIPT")"
+ [ "$SCRIPT" = "${SCRIPT#/}" ] && SCRIPT="$DIR/$SCRIPT"
+done
+PATH="$DIR:/usr/local/bin:$PATH"
+export PATH
which multimarkdown > /dev/null
if [ $? = 1 ]
#!/bin/sh
#
-# mmd2oepub --- MultiMarkdown convenience script
+# mmd2epub --- MultiMarkdown convenience script
# <http://fletcherpenney.net/multimarkdown/>
# Fletcher T. Penney
#
#
# Be sure to include multimarkdown in our PATH
-export PATH="$PWD:/usr/local/bin:$PATH"
+unset CDPATH
+SCRIPT="$0"
+while
+ DIR="$(cd -P -- "$(dirname -- "$SCRIPT")" && pwd)"
+ test -h "$SCRIPT"
+do
+ SCRIPT="$(readlink "$SCRIPT")"
+ [ "$SCRIPT" = "${SCRIPT#/}" ] && SCRIPT="$DIR/$SCRIPT"
+done
+PATH="$DIR:/usr/local/bin:$PATH"
+export PATH
which multimarkdown > /dev/null
if [ $? = 1 ]
#
# Be sure to include multimarkdown in our PATH
-export PATH="$PWD:/usr/local/bin:$PATH"
+unset CDPATH
+SCRIPT="$0"
+while
+ DIR="$(cd -P -- "$(dirname -- "$SCRIPT")" && pwd)"
+ test -h "$SCRIPT"
+do
+ SCRIPT="$(readlink "$SCRIPT")"
+ [ "$SCRIPT" = "${SCRIPT#/}" ] && SCRIPT="$DIR/$SCRIPT"
+done
+PATH="$DIR:/usr/local/bin:$PATH"
+export PATH
which multimarkdown > /dev/null
if [ $? = 1 ]
#
# Be sure to include multimarkdown in our PATH
-export PATH="$PWD:/usr/local/bin:$PATH"
+unset CDPATH
+SCRIPT="$0"
+while
+ DIR="$(cd -P -- "$(dirname -- "$SCRIPT")" && pwd)"
+ test -h "$SCRIPT"
+do
+ SCRIPT="$(readlink "$SCRIPT")"
+ [ "$SCRIPT" = "${SCRIPT#/}" ] && SCRIPT="$DIR/$SCRIPT"
+done
+PATH="$DIR:/usr/local/bin:$PATH"
+export PATH
which multimarkdown > /dev/null
if [ $? = 1 ]
#
# Be sure to include multimarkdown in our PATH
-export PATH="$PWD:/usr/local/bin:$PATH"
+unset CDPATH
+SCRIPT="$0"
+while
+ DIR="$(cd -P -- "$(dirname -- "$SCRIPT")" && pwd)"
+ test -h "$SCRIPT"
+do
+ SCRIPT="$(readlink "$SCRIPT")"
+ [ "$SCRIPT" = "${SCRIPT#/}" ] && SCRIPT="$DIR/$SCRIPT"
+done
+PATH="$DIR:/usr/local/bin:$PATH"
+export PATH
which multimarkdown > /dev/null
if [ $? = 1 ]
# LaTeX file.
# Be sure to include multimarkdown and latex in our PATH
-export PATH="$PWD:/usr/local/bin:/usr/texbin:/Library/TeX/texbin:$PATH"
+unset CDPATH
+SCRIPT="$0"
+while
+ DIR="$(cd -P -- "$(dirname -- "$SCRIPT")" && pwd)"
+ test -h "$SCRIPT"
+do
+ SCRIPT="$(readlink "$SCRIPT")"
+ [ "$SCRIPT" = "${SCRIPT#/}" ] && SCRIPT="$DIR/$SCRIPT"
+done
+PATH="$DIR:/usr/local/bin:/usr/texbin:/Library/TeX/texbin:$PATH"
+export PATH
which multimarkdown > /dev/null
if [ $? = 1 ]
#
# Be sure to include multimarkdown in our PATH
-export PATH="$PWD:/usr/local/bin:$PATH"
+unset CDPATH
+SCRIPT="$0"
+while
+ DIR="$(cd -P -- "$(dirname -- "$SCRIPT")" && pwd)"
+ test -h "$SCRIPT"
+do
+ SCRIPT="$(readlink "$SCRIPT")"
+ [ "$SCRIPT" = "${SCRIPT#/}" ] && SCRIPT="$DIR/$SCRIPT"
+done
+PATH="$DIR:/usr/local/bin:$PATH"
+export PATH
which multimarkdown > /dev/null
if [ $? = 1 ]