3 names=`egrep 'NLOPT_[LG][ND]|NLOPT_AUGLAG|NLOPT_G_MLSL' ../api/nlopt.h |sed 's/ //g' |tr = , |cut -d, -f1`
6 gcc -I../util -I.. -E ../api/general.c | perl -pe 's/^ *\n//' > foo.c
7 desc_start=`grep -n nlopt_algorithm_names foo.c |cut -d: -f1 |head -1`
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