Change configuration system from Autotools to Meson
[geeqie.git] / gen_readme.sh
index 4ffa123..d087eb9 100755 (executable)
@@ -3,10 +3,13 @@
 ## @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
@@ -18,8 +21,6 @@ then
        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