From: stevenj Date: Mon, 31 May 2010 21:49:14 +0000 (-0400) Subject: fixed generation of nlopt.f (again) X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=0be6f3e0461e97f0d575450a763056bb7f67501c;p=nlopt.git fixed generation of nlopt.f (again) darcs-hash:20100531214914-c8de0-0bd388d69350800bad22d18211e5def40a0121e1.gz --- diff --git a/api/Makefile.am b/api/Makefile.am index 9495597..b6fe33b 100644 --- a/api/Makefile.am +++ b/api/Makefile.am @@ -15,7 +15,7 @@ if MAINTAINER_MODE nlopt.f: nlopt.h rm -f $@ - (i=0; egrep 'NLOPT_[LG][DN]' $(srcdir)/nlopt.h | tr -d ' =0,' | while read n; do echo " integer $$n"; echo " parameter ($$n=$$i)"; i=`expr $$i + 1`; done; tail -n +`grep -n enum $(srcdir)/nlopt.h |cut -d: -f1 |tail -n 1` $(srcdir)/nlopt.h | grep NLOPT | grep -v NLOPT_EXTERN | cut -d, -f1 | tr -d ' ' | perl -pe 's/([A-Za-z0-9_]+)=([-+0-9]+)/ integer \1\n parameter (\1=\2)/') > $@ + (i=0; egrep 'NLOPT_[LG][DN]' $(srcdir)/nlopt.h | tr -d ' =0,' | while read n; do echo " integer $$n"; echo " parameter ($$n=$$i)"; i=`expr $$i + 1`; done; tail -n +`grep -n enum $(srcdir)/nlopt.h |cut -d: -f1 |tail -n 1` $(srcdir)/nlopt.h | grep NLOPT | egrep -v 'EXTERN|DEPRECATED|MINF_MAX' | cut -d, -f1 | tr -d ' ' | perl -pe 's/([A-Za-z0-9_]+)=([-+0-9]+)/ integer \1\n parameter (\1=\2)/') > $@ nlopt.hpp: nlopt.h nlopt-in.hpp rm -f $@