]> git.proxmox.com Git - grub2.git/blame - autogen.sh
fix pkglibrootdir for grub-mkimage
[grub2.git] / autogen.sh
CommitLineData
6a161fa9 1#! /bin/sh
2
3set -e
4
ff174dbe
BC
5autogen --version >/dev/null || (echo autogen missing; exit 1)
6
a60f6ee1
BC
7echo "Creating symlinks..."
8ln -svf ../NEWS grub-core/
9ln -svf ../TODO grub-core/
10ln -svf ../THANKS grub-core/
11ln -svf ../README grub-core/
12ln -svf ../INSTALL grub-core/
13ln -svf ../AUTHORS grub-core/
14ln -svf ../COPYING grub-core/
15ln -svf ../ABOUT-NLS grub-core/
16ln -svf ../ChangeLog grub-core/
17ln -svf ../aclocal.m4 grub-core/
18ln -svf ../acinclude.m4 grub-core/
19ln -svf ../config.rpath grub-core/
20ln -svf ../gentpl.py grub-core/
21ln -svf ../configure.common grub-core/
22
23echo "Creating Makefile.tpl..."
8c411768 24python gentpl.py | sed -e '/^$/{N;/^\n$/D;}' > Makefile.tpl
a60f6ee1 25echo "Running autogen..."
8c411768
BC
26autogen -T Makefile.tpl modules.def | sed -e '/^$/{N;/^\n$/D;}' > modules.am
27
a60f6ee1 28echo "Creating grub-core/Makefile.tpl..."
8c411768 29(cd grub-core && python gentpl.py | sed -e '/^$/{N;/^\n$/D;}' > Makefile.tpl)
a60f6ee1 30echo "Running autogen..."
8c411768 31(cd grub-core && autogen -T Makefile.tpl modules.def | sed -e '/^$/{N;/^\n$/D;}' > modules.am)
0ef45b93 32
a60f6ee1 33echo "Importing libgcrypt..."
8c411768 34(cd grub-core && python import_gcry.py lib/libgcrypt/ .)
0ef45b93 35
a60f6ee1 36echo "Saving timestamps..."
8c411768 37echo timestamp > stamp-h.in
a60f6ee1 38(cd grub-core && echo timestamp > stamp-h.in)
6a161fa9 39
a60f6ee1
BC
40echo "Running autoreconf..."
41autoreconf -vi
6a161fa9 42exit 0