fix md2html script to be runnable from any directory
authordave russo <d-russo@ti.com>
Fri, 6 Nov 2015 18:53:00 +0000 (10:53 -0800)
committerdave russo <d-russo@ti.com>
Fri, 6 Nov 2015 18:53:00 +0000 (10:53 -0800)
etc/md2html.ksh

index 35f4c07642d3619f6d36674698642e729713d149..702e34e0f9b079dc88a2ae45a664c576cee5e2d3 100644 (file)
@@ -1,8 +1,8 @@
-#!/bin/ksh
+#!/bin/sh
 #
 # Convert a markdown file to an html file
 #
-# usage: ms2html <markdown_file>
+# usage: md2html <markdown_file>
 #
 # html content is output to stdout.
 #
@@ -26,7 +26,7 @@ echo '      }'
 echo '    </style>'
 echo '  </head>'
 echo '  <body ><article class="markdown-body">'
-perl etc/Markdown.pl $1
+perl `dirname $0`/Markdown.pl $1
 echo '  </article></body>'
 echo '</html>'