Merge grub_net into net. Compiles but is broken right now.
[grub.git] / autogen.sh
1 #! /usr/bin/env bash
2
3 set -e
4
5 autogen --version >/dev/null || exit 1
6
7 echo "Importing unicode..."
8 python util/import_unicode.py unicode/UnicodeData.txt unicode/BidiMirroring.txt unicode/ArabicShaping.txt grub-core/unidata.c
9
10 echo "Importing libgcrypt..."
11 python util/import_gcry.py grub-core/lib/libgcrypt/ grub-core
12
13 echo "Creating Makefile.tpl..."
14 python gentpl.py | sed -e '/^$/{N;/^\n$/D;}' > Makefile.tpl
15
16 echo "Running autogen..."
17 autogen -T Makefile.tpl Makefile.util.def | sed -e '/^$/{N;/^\n$/D;}' > Makefile.util.am
18 autogen -T Makefile.tpl grub-core/Makefile.core.def | sed -e '/^$/{N;/^\n$/D;}' > grub-core/Makefile.core.am
19 autogen -T Makefile.tpl grub-core/Makefile.gcry.def | sed -e '/^$/{N;/^\n$/D;}' > grub-core/Makefile.gcry.am
20
21 echo "Saving timestamps..."
22 echo timestamp > stamp-h.in
23
24 echo "Running autoreconf..."
25 autoreconf -vi
26 exit 0