configure: check for pandoc version properly.
This commit is contained in:
parent
e0b71dd6b3
commit
3d76a75193
|
@ -363,11 +363,12 @@ fi
|
||||||
|
|
||||||
if [ ! -z "$CFG_PANDOC" ]
|
if [ ! -z "$CFG_PANDOC" ]
|
||||||
then
|
then
|
||||||
PANDOC_VER_LINE=$(pandoc --version | grep '^pandoc ')
|
PANDOC_VER_LINE=$(pandoc --version | grep '^pandoc ')
|
||||||
PANDOC_VER=${PANDOC_VER_LINE#pandoc }
|
PANDOC_VER=${PANDOC_VER_LINE#pandoc }
|
||||||
PV_MAJOR_MINOR=${PANDOC_VER%.[0-9]}
|
PV_MAJOR_MINOR=${PANDOC_VER%.[0-9]*}
|
||||||
PV_MAJOR=${PV_MAJOR_MINOR%.[0-9]}
|
PV_MAJOR=${PV_MAJOR_MINOR%%[.][0-9]*}
|
||||||
PV_MINOR=${PV_MAJOR_MINOR#[0-9].}
|
PV_MINOR=${PV_MAJOR_MINOR#[0-9]*[.]}
|
||||||
|
PV_MINOR=${PV_MINOR%%[.][0-9]*}
|
||||||
if [ "$PV_MAJOR" -lt "1" ] || [ "$PV_MINOR" -lt "8" ]
|
if [ "$PV_MAJOR" -lt "1" ] || [ "$PV_MINOR" -lt "8" ]
|
||||||
then
|
then
|
||||||
step_msg "pandoc $PV_MAJOR.$PV_MINOR is too old. disabling"
|
step_msg "pandoc $PV_MAJOR.$PV_MINOR is too old. disabling"
|
||||||
|
|
Loading…
Reference in New Issue