grub/autogen.sh

41 lines
1.1 KiB
Bash
Raw Normal View History

2002-12-27 08:53:07 +00:00
#! /bin/sh
set -e
2010-06-03 06:22:33 +00:00
echo "Creating symlinks..."
ln -svf ../NEWS grub-core/
ln -svf ../TODO grub-core/
ln -svf ../THANKS grub-core/
ln -svf ../README grub-core/
ln -svf ../INSTALL grub-core/
ln -svf ../AUTHORS grub-core/
ln -svf ../COPYING grub-core/
ln -svf ../ABOUT-NLS grub-core/
ln -svf ../ChangeLog grub-core/
ln -svf ../aclocal.m4 grub-core/
ln -svf ../acinclude.m4 grub-core/
ln -svf ../config.rpath grub-core/
ln -svf ../gentpl.py grub-core/
ln -svf ../configure.common grub-core/
echo "Creating Makefile.tpl..."
2010-05-06 06:04:04 +00:00
python gentpl.py | sed -e '/^$/{N;/^\n$/D;}' > Makefile.tpl
2010-06-03 06:22:33 +00:00
echo "Running autogen..."
2010-05-06 06:04:04 +00:00
autogen -T Makefile.tpl modules.def | sed -e '/^$/{N;/^\n$/D;}' > modules.am
2010-06-03 06:22:33 +00:00
echo "Creating grub-core/Makefile.tpl..."
2010-05-06 06:04:04 +00:00
(cd grub-core && python gentpl.py | sed -e '/^$/{N;/^\n$/D;}' > Makefile.tpl)
2010-06-03 06:22:33 +00:00
echo "Running autogen..."
2010-05-06 06:04:04 +00:00
(cd grub-core && autogen -T Makefile.tpl modules.def | sed -e '/^$/{N;/^\n$/D;}' > modules.am)
2010-06-03 06:22:33 +00:00
echo "Importing libgcrypt..."
2010-05-06 06:04:04 +00:00
(cd grub-core && python import_gcry.py lib/libgcrypt/ .)
2010-06-03 06:22:33 +00:00
echo "Saving timestamps..."
2010-05-06 06:04:04 +00:00
echo timestamp > stamp-h.in
2010-06-03 06:22:33 +00:00
(cd grub-core && echo timestamp > stamp-h.in)
2002-12-27 08:53:07 +00:00
2010-06-03 06:22:33 +00:00
echo "Running autoreconf..."
autoreconf -vi
2002-12-27 08:53:07 +00:00
exit 0