On Aug 8, 2007, at 7:03 PM, Vincent Torri wrote:
if test "x${use_pcf_driver}" = "xyes"; then AC_MSG_NOTICE([Creating pcf driver...]) rm -f src/lib/drv_pcf.cecho "/* CAUTION! NEVER EDIT THIS FILE */" > src/ lib/drv_pcf.c sed 's/bdf/pcf/g' src/lib/drv_bdf.c | sed 's/BDF/PCF/g' >> src/ lib/drv_pcf.c
You don't need to invoke sed twice: sed 's/bdf/pcf/g;s/BDF/PCF/g'
fi [...] AC_DEFUN([AS_CREATE_DRIVER], [ pushdef([UP], translit([$1], [a-z], [A-Z]))dnl pushdef([DOWN], translit([$1], [A-Z], [a-z]))dnl pushdef([SRCUP], translit([$2], [a-z], [A-Z]))dnl pushdef([SRCDOWN], translit([$2], [A-Z], [a-z]))dnl if test "x${use_]DOWN[_driver}" = "xyes"; then AC_MSG_NOTICE([Creating UP[] driver...]) rm -f src/lib/drv_]DOWN[.c echo "/* CAUTION! NEVER EDIT THIS FILE */" > src/lib/drv_]DOWN[.csed 's/]SRCDOWN[/]DOWN[/g' src/lib/drv_]SRCDOWN[.c | sed 's/] SRCUP[/]UP[/g' >> src/lib/drv_]DOWN[.c
Same thing.
fi popdef([UP]) popdef([DOWN]) popdef([SRCUP]) popdef([SRCDOWN]) ])
Cheers, -- Benoit Sigoure aka Tsuna EPITA Research and Development Laboratory
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf