pkgsrc/lang/guile/patches/patch-libguile_guile-snarf.in
joerg de73707902 Make the newline processing even more aggressive by removing the line
markers first and killing all newlines before splitting up the magic
markers. Fixes build of guile-gnome with Clang. Bump revision.
2013-11-13 22:49:31 +00:00

14 lines
605 B
Text

$NetBSD: patch-libguile_guile-snarf.in,v 1.2 2013/11/13 22:49:31 joerg Exp $
--- libguile/guile-snarf.in.orig 2010-12-13 17:24:40.000000000 +0000
+++ libguile/guile-snarf.in
@@ -51,7 +51,8 @@ modern_snarf ()
## empty file.
echo "/* cpp arguments: $@ */" ;
${cpp} -DSCM_MAGIC_SNARF_INITS -DSCM_MAGIC_SNARFER "$@" > ${temp} && cpp_ok_p=true
- grep "^ *\^ *\^" ${temp} | sed -e "s/^ *\^ *\^//" -e "s/\^\ *:\ *\^.*/;/"
+ grep -v '^#' ${temp} | tr '\n' ' ' | sed 's,\^ *\^,\
+&,g' | grep "^ *\^ *\^" | sed -e "s/^ *\^ *\^//" -e "s/\^\ *:\ *\^.*/;/"
}
## main