mirror of
https://github.com/fletcher/MultiMarkdown-6.git
synced 2024-10-05 02:57:19 +03:00
30 lines
482 B
Plaintext
30 lines
482 B
Plaintext
|
#!/bin/sh
|
||
|
#
|
||
|
# mmd --- MultiMarkdown convenience script
|
||
|
# <http://fletcherpenney.net/multimarkdown/>
|
||
|
# Fletcher T. Penney
|
||
|
#
|
||
|
# Pass arguments on to the binary to convert text to XHTML
|
||
|
#
|
||
|
|
||
|
# Be sure to include multimarkdown in our PATH
|
||
|
export PATH="$PWD:/usr/local/bin:$PATH"
|
||
|
|
||
|
which multimarkdown > /dev/null
|
||
|
if [ $? = 1 ]
|
||
|
then
|
||
|
echo multimarkdown executable not found! >&2
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
if [ $# = 0 ]
|
||
|
then
|
||
|
multimarkdown
|
||
|
else
|
||
|
until [ "$*" = "" ]
|
||
|
do
|
||
|
multimarkdown -b "$1"
|
||
|
shift
|
||
|
done
|
||
|
fi
|