mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
configure: check for pandoc version properly.
This commit is contained in:
parent
e0b71dd6b3
commit
3d76a75193
7
configure
vendored
7
configure
vendored
@ -365,9 +365,10 @@ if [ ! -z "$CFG_PANDOC" ]
|
||||
then
|
||||
PANDOC_VER_LINE=$(pandoc --version | grep '^pandoc ')
|
||||
PANDOC_VER=${PANDOC_VER_LINE#pandoc }
|
||||
PV_MAJOR_MINOR=${PANDOC_VER%.[0-9]}
|
||||
PV_MAJOR=${PV_MAJOR_MINOR%.[0-9]}
|
||||
PV_MINOR=${PV_MAJOR_MINOR#[0-9].}
|
||||
PV_MAJOR_MINOR=${PANDOC_VER%.[0-9]*}
|
||||
PV_MAJOR=${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" ]
|
||||
then
|
||||
step_msg "pandoc $PV_MAJOR.$PV_MINOR is too old. disabling"
|
||||
|
Loading…
Reference in New Issue
Block a user