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