This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH crosstool-NG] make crosstool-ng work with mawk


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm running Ubuntu and had some trouble to get crosstool-ng going. It
seems that Debian based distro's use mawk with slightly different
behaviour than gawk in some areas.

Don't know if this patch would break use with gawk? Not really an expert
in this area.


Submitted By: Mark Vels <Mark dot Vels at fundem dot net>
Date: 2007-08-11
Origin: http://ymorin.is-a-geek.org/svn/crosstool-ng/trunk ct-ng
Description: Makes crosstool-ng work with mawk (used by Debian distro's
like Ubuntu)

Index: scripts/functions
===================================================================
- --- scripts/functions	(revision 415)
+++ scripts/functions	(working copy)
@@ -556,7 +556,7 @@
     # be able to remove the functions names.
     set |awk '
          BEGIN { _p = 1; }
- -         $0~/^[^ ] ()/ { _p = 0; }
+         $0~/^[^ ] \(\)/ { _p = 0; }
          _p == 1
          $0 == "}" { _p = 1; }
          ' |egrep -v '^[^ ]+ \(\)' >"${state_dir}/env.sh"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGviAKjTeb/Fj3BboRAmmgAKCeGNGxOuaSyK+eUqQxMrGZpef6fACghhAA
g6Jj7N6mi4hckTnosUGozWw=
=O6kP
-----END PGP SIGNATURE-----

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]