catch errors when generating options
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user