3 names=`egrep NLOPT_[LG][ND] ../api/nlopt.h |sed 's/ //g' |tr = , |cut -d, -f1`
6 gcc -I.. -E ../api/nlopt.c | perl -pe 's/^ *\n//' > foo.c
7 desc_start=`grep -n nlopt_algorithm_names foo.c |cut -d: -f1 |head -1`
10 # if test -r $n.m; then
11 # perl -pi -e "s/val = [0-9]+;/val = $i;/" $n.m
13 descline=`expr $i + $desc_start + 1`
14 desc=`tail -n +$descline foo.c |head -1 |cut -d\" -f2`
18 % See nlopt_minimize for more information.
26 mfiles=`echo "$names" | tr '\n' ' ' | sed 's/ /.m /g'`
27 perl -pi -e "s/^MFILES = .*\$/MFILES = $mfiles/" Makefile.am