## @file
## @brief Convert README.md to README.html
##
-## Ceate README.html file,
+## Create README.html file,
##
-if [ ! -e "README.md" ]
+srcdir="$1"
+builddir="$2"
+
+if [ ! -e "$srcdir/README.md" ]
then
printf '%s\n' "ERROR: README.md not found"
exit 1
exit 1
fi
-[ -e README.html ] && mv -f README.html README.html.bak
-
-pandoc README.md > README.html
+pandoc "$srcdir/README.md" > "$builddir/README.html"
exit 0