configure: fix use of bash-specific here strings (also awk, please no more deps).
This commit is contained in:
parent
acf2d208d6
commit
33795bc4d3
1 changed files with 7 additions and 3 deletions
6
configure
vendored
6
configure
vendored
|
@ -362,7 +362,11 @@ fi
|
|||
|
||||
if [ ! -z "$CFG_PANDOC" ]
|
||||
then
|
||||
read PV_MAJOR PV_MINOR <<<$(pandoc --version | awk '/^pandoc/ {split($2, PV, "."); print PV[1] " " PV[2]}')
|
||||
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].}
|
||||
if [ "$PV_MAJOR" -lt "1" ] || [ "$PV_MINOR" -lt "8" ]
|
||||
then
|
||||
step_msg "pandoc $PV_MAJOR.$PV_MINOR is too old. disabling"
|
||||
|
|
Loading…
Add table
Reference in a new issue