gen_build_files.sh: rewrite with sed
authorMike Frysinger <vapier@gentoo.org>
Tue, 16 Nov 2010 12:29:12 +0000 (07:29 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 16 Nov 2010 14:01:54 +0000 (09:01 -0500)
commitf718e3a0dbe47ed7ed0398fe4461d33c8f69c669
tree20bad9f86dabaf6af4fb06c9e7d991f307e12b97
parentb78d561ec79b6a7c29d14bf49c82b600815b2cc4
gen_build_files.sh: rewrite with sed

The shell parsing of files is incredibly slow on many systems.  With
one report, the process was taking a minute or two which made people
thing the build was hung.  So rewrite the craziness with sed and proper
shell functions.  On an idle system, this cut the runtime by half.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
scripts/gen_build_files.sh