diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-04-06 10:10:41 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-04-06 10:10:41 -0400 |
commit | 218a70e68b017eeee3075f34d613c7142f94b6cb (patch) | |
tree | f7c3d2eb424e6324b088ea7797e14df0dc083ccc /SConstruct | |
parent | 11600160e713e9956351fd894791c52e9af2d205 (diff) | |
download | gpsd-218a70e68b017eeee3075f34d613c7142f94b6cb.tar.gz |
asciidoc may not be present. Cope.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -953,6 +953,7 @@ env.Alias('testregress', check) # The website directory # # None of these productions are fired by default. +# The content they handle is the GPSD website, not included in release tarballs. env.Alias('website', Split(''' www/gpscat.html www/gpsctl.html www/gpsdecode.html @@ -969,11 +970,12 @@ env.Alias('website', Split(''' ''')) # asciidoc documents -for stem in ['AIVDM', 'NMEA', - 'protocol-evolution', 'protocol-transition' - 'client-howto']: - env.Command('www/%s.html' % stem, 'www/%s.txt' % stem, - ['asciidoc -a toc -o www/%s.html www/%s.txt' % (stem, stem)]) +if env.WhereIs('asciidoc'): + for stem in ['AIVDM', 'NMEA', + 'protocol-evolution', 'protocol-transition' + 'client-howto']: + env.Command('www/%s.html' % stem, 'www/%s.txt' % stem, + ['asciidoc -a toc -o www/%s.html www/%s.txt' % (stem, stem)]) if htmlbuilder: # DocBook documents |