]> git.proxmox.com Git - grub2.git/blobdiff - autogen.sh
Merge mainline into newreloc. For now without boot tests
[grub2.git] / autogen.sh
index f9d55318f637e44b3694882c3a039d9e3433f9ca..f052499ae4ba4b8e22ce882aa17d0151b6640211 100755 (executable)
@@ -1,25 +1,26 @@
-#! /bin/sh
+#! /usr/bin/env bash
 
 set -e
 
-aclocal
-autoconf
-autoheader
+autogen --version >/dev/null || exit 1
 
-# FIXME: automake doesn't like that there's no Makefile.am
-automake -a -c -f || true
+echo "Importing unicode..."
+python util/import_unicode.py unicode/UnicodeData.txt unicode/BidiMirroring.txt unicode/ArabicShaping.txt grub-core/unidata.c
 
-echo timestamp > stamp-h.in
+echo "Importing libgcrypt..."
+python util/import_gcry.py grub-core/lib/libgcrypt/ grub-core
 
-python util/import_gcry.py lib/libgcrypt/ .
+echo "Creating Makefile.tpl..."
+python gentpl.py | sed -e '/^$/{N;/^\n$/D;}' > Makefile.tpl
 
-python util/import_unicode.py unicode/UnicodeData.txt unicode/BidiMirroring.txt unicode/ArabicShaping.txt unidata.c
+echo "Running autogen..."
+autogen -T Makefile.tpl Makefile.util.def | sed -e '/^$/{N;/^\n$/D;}' > Makefile.util.am
+autogen -T Makefile.tpl grub-core/Makefile.core.def | sed -e '/^$/{N;/^\n$/D;}' > grub-core/Makefile.core.am
+autogen -T Makefile.tpl grub-core/Makefile.gcry.def | sed -e '/^$/{N;/^\n$/D;}' > grub-core/Makefile.gcry.am
 
-for rmk in conf/*.rmk ${GRUB_CONTRIB}/*/conf/*.rmk; do
-  if test -e $rmk ; then
-    ruby genmk.rb < $rmk > `echo $rmk | sed 's/\.rmk$/.mk/'`
-  fi
-done
-sh gendistlist.sh > DISTLIST
+echo "Saving timestamps..."
+echo timestamp > stamp-h.in
 
+echo "Running autoreconf..."
+autoreconf -vi
 exit 0