Commit 54ff69c9 authored by Mark Andrews's avatar Mark Andrews

catch errors when generating options

parent 98e8948b
......@@ -13,7 +13,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: Makefile.in,v 1.7 2007/09/24 04:21:59 marka Exp $
# $Id: Makefile.in,v 1.8 2009/07/10 07:47:46 marka Exp $
srcdir = @srcdir@
VPATH = @srcdir@
......@@ -38,11 +38,13 @@ docclean manclean maintainer-clean::
CFG_TEST = ../../bin/tests/cfg_test
options: FORCE
if test -x ${CFG_TEST} && \
${CFG_TEST} --named --grammar | \
${PERL} ${srcdir}/sort-options.pl | \
${PERL} ${srcdir}/format-options.pl >$@.new ; then \
if test -x ${CFG_TEST} ; \
then \
${CFG_TEST} --named --grammar > $@.raw ; \
${PERL} ${srcdir}/sort-options.pl < $@.raw > $@.sorted ; \
${PERL} ${srcdir}/format-options.pl < $@.sorted > $@.new ; \
mv -f $@.new $@ ; \
rm -f $@.raw $@.sorted ; \
else \
rm -f $@.new ; \
rm -f $@.new $@.raw $@.sorted ; \
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment