3 candidate
="$1" #ignored
5 asciidoc
=`which asciidoc`
6 if [ ! -x "$asciidoc" ]; then
7 # echo nothing: no suitable asciidoc found
11 # Output of 'asciidoc --version' examples:
13 version
=`$asciidoc --version | cut -d\ -f2`
14 major
=`echo "$version" | cut -d. -f1`
15 minor
=`echo "$version" | cut -d. -f2`
16 bugfix
=`echo "$version" | cut -d. -f3`
18 # To generate the manual, we need asciidoc >= 8.6.3
22 if [ $major -gt $major_min ]; then
25 if [ $major -eq $major_min -a $minor -ge $minor_min ]; then
28 if [ $major -eq $major_min -a $minor -eq $minor_min \
29 -a $bugfix -ge $bugfix_min ]; then
32 # echo nothing: no suitable asciidoc found