summaryrefslogtreecommitdiffstats
path: root/utils/console-tools/PRE_BUILD
blob: 46f1f4597069136f96a9efd44c9149323a0b7b91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
default_pre_build      &&
cd  $SOURCE_DIRECTORY  &&
patch  -p0  <  $SCRIPT_DIRECTORY/double-fclose-fix.patch  &&
patch  -p1  <  $SCRIPT_DIRECTORY/gcc-3.4.patch            &&
cp  $SCRIPT_DIRECTORY/config.sub  .                       &&
if ! is_depends_enabled $SPELL linuxdoc-tools; then
  find -iname "*.sgml" -exec rm {} \; &&
  sed -i -e 's/kbd.FAQ.html//' -e 's/kbd.FAQ.txt//' \
         -e 's/lct.html//' -e 's/lct.txt//' doc/Makefile*
fi &&
# fixes bug #14434 for gcc 4.2 (4.3 doesn't need it)
sedit "7i#include <locale.h>" include/lct/local.h         &&
sedit "s/examples//"  Makefile.am                         &&
sedit "s/examples//"  Makefile.in