Change configuration system from Autotools to Meson
[geeqie.git] / gen_readme.sh
1 #!/bin/sh
2
3 ## @file
4 ## @brief Convert README.md to README.html
5 ##
6 ## Create README.html file,
7 ##
8
9 srcdir="$1"
10 builddir="$2"
11
12 if [ ! -e "$srcdir/README.md" ]
13 then
14         printf '%s\n' "ERROR: README.md not found"
15         exit 1
16 fi
17
18 if ! command -v pandoc > /dev/null 2>&1
19 then
20         printf '%s\n' "ERROR: File pandoc not installed"
21         exit 1
22 fi
23
24 pandoc "$srcdir/README.md" > "$builddir/README.html"
25
26 exit 0