]> git.proxmox.com Git - grub2.git/blob - autogen.sh
merge with mainline
[grub2.git] / autogen.sh
1 #! /bin/sh
2
3 set -e
4
5 ln -sf ../NEWS grub-core/
6 ln -sf ../README grub-core/
7 ln -sf ../INSTALL grub-core/
8 ln -sf ../AUTHORS grub-core/
9 ln -sf ../COPYING grub-core/
10 ln -sf ../ABOUT-NLS grub-core/
11 ln -sf ../ChangeLog grub-core/
12 ln -sf ../aclocal.m4 grub-core/
13 ln -sf ../acinclude.m4 grub-core/
14 ln -sf ../config.rpath grub-core/
15 ln -sf ../gentpl.py grub-core/
16 ln -sf ../configure.common grub-core/
17
18 ln -sf grub-core/include .
19 ln -sf grub-core/gnulib .
20 ln -sf grub-core/lib .
21
22 python gentpl.py | sed -e '/^$/{N;/^\n$/D;}' > Makefile.tpl
23 autogen -T Makefile.tpl modules.def | sed -e '/^$/{N;/^\n$/D;}' > modules.am
24
25 (cd grub-core && python gentpl.py | sed -e '/^$/{N;/^\n$/D;}' > Makefile.tpl)
26 (cd grub-core && autogen -T Makefile.tpl modules.def | sed -e '/^$/{N;/^\n$/D;}' > modules.am)
27
28 (cd grub-core && echo timestamp > stamp-h.in)
29 (cd grub-core && python import_gcry.py lib/libgcrypt/ .)
30
31 echo timestamp > stamp-h.in
32 autoreconf -vi
33
34 exit 0