Skip to contentSkip to conversation

multiboot CVS module

PATCH New Robert Millan 1 participant 1 message Feb 8, 2008 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 multiboot CVS module

When this script is run inside GRUB Legacy directory, it will convert it to a Multiboot directory by ripping lots of stuff and patching some files, such that it only contains static files and is ready to be imported as a CVS module.

There are still some open questions though, like what do we put in README, NEWS, AUTHORS, etc.

Please can you comment on it?

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)

#!/bin/bash -e

static_files=mktemp

for i in \
    INSTALL autogen.sh README COPYING AUTHORS .cvsignore NEWS configure.ac \
    Makefile.am ChangeLog docs/multiboot.texi docs/.cvsignore docs/Makefile.am \
    docs/src2texi docs/kernel.c docs/boot.S docs/help2man docs/multiboot.h ; do

echo ./$i
done > $static_files

# be careful before removing stuff
test -e docs/multiboot.texi || exit 1
find . -type f | \
  while read i ; do
    if ! grep -qx "$i" $static_files ; then
      rm -f $i
    fi
  done
rm -f $static_files

for i in 1 2 ; do
find . -type d -empty | xargs rmdir
done

patch -p1 < $0
exit 0

AUTHORS +0 -49
diff -Nur multiboot/AUTHORS multiboot.good/AUTHORS
@@ -1,54 +1,5 @@
-VaX#n8 (real name unknown) wrote shared_src/fsys_ext2fs.c.
-
-Heiko Schroeder rewrote shared_src/stage1.S to be more readable.
 
 The following authors assigned copyright on their work to the Free
 Software Foundation:
 
-Erich Stefan Boleyn originally designed and implemented GRUB.
-
-Gordon Matzigkeit adopted GRUB into the GNU Project.  He fixed several
-bugs, added symbolic link support to shared_src/fsys_ext2fs.c, and
-began the implementation of /sbin/grub. He was an official maintainer.
-
-Yoshinori K. Okuji contributed many bugfixes and new features, such as
-working LBA support, /sbin/grub support for configuration files, the
-script /sbin/grub-install, the utility /bin/mbchk, the new engine for
-builtin commands, disk swapping support, keyboard configuration support,
-network support, online help support, command-line history support,
-hidden menu support, the new Linux loader, serial terminal support,
-single-line editing support, the utility /sbin/grub-md5-crypt, the new
-GRUB manual, and several new commands. He is the current official
-maintainer.
-
-Peter Astrand added support for a color menu.
-
-Pavel Roskin contributed many bugfixes and new features, such as FreeBSD
-support for the grub shell, and configure process cleanups.
-
-Klaus Reichl wrote stage2/fsys_minix.c.
-
 Per Lundberg added graphics support to the Multiboot Specification.
-
-Jochen Hoenicke rewrote stage2/fsys_fat.c and wrote
-stage2/fsys_reiserfs.c and stage2/md5.c.
-
-Christoph Plattner added support for Net Boot Image Proposal.
-
-Frank Mehnert added support for hercules console.
-
-Kristoffer Branemyr added VSTa filesystem support.
-
-Serguei Tzukanov added JFS and XFS support.
-
-Jason Thomas added Linux DAC960 support and support for hiding/unhiding
-logical partitions, and did a significant bugfix for the terminal stuff.
-
-Tilmann Bubeck added support for vt100-incompatible terminals.
-
-KB Sriram added a better detection of FAT filesystem and fixed a
-network device completion.
-
-Eric Kvaalen fixed a lot of problems in the GRUB manual.
-
-Leonid Lisovskiy added El Torito support.
autogen.sh +10 -0
diff -Nur multiboot/autogen.sh multiboot.good/autogen.sh
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+set -ex
+
+aclocal
+autoheader
+automake --add-missing
+autoconf
+
+exit 0
configure.ac +5 -638

671 lines not on this page · raw message

docs/Makefile.am +1 -31
diff -Nur multiboot/docs/Makefile.am multiboot.good/docs/Makefile.am
@@ -1,8 +1,6 @@
-info_TEXINFOS = grub.texi multiboot.texi
-grub_TEXINFOS = internals.texi fdl.texi
+info_TEXINFOS = multiboot.texi
 EXAMPLES = boot.S kernel.c multiboot.h
 multiboot_TEXINFOS = boot.S.texi kernel.c.texi multiboot.h.texi
-man_MANS = grub.8 mbchk.1 grub-install.8 grub-md5-crypt.8 grub-terminfo.8
 HELP2MAN = help2man
 SRC2TEXI = src2texi
 noinst_SCRIPTS = $(HELP2MAN) $(SRC2TEXI)
@@ -35,31 +33,3 @@
 
 %.S.texi: %.S $(srcdir)/$(SRC2TEXI)
 	$(SHELL) $(srcdir)/$(SRC2TEXI) $(srcdir) $< $@
-
-if MAINTAINER_MODE
-$(srcdir)/grub.8: ../grub/grub $(srcdir)/$(HELP2MAN)
-	$(PERL) $(srcdir)/$(HELP2MAN) --name="the grub shell" \
-		--section=8 --output=$@ $<
-
-$(srcdir)/grub-install.8: ../util/grub-install $(srcdir)/$(HELP2MAN)
-	chmod 755 $<
-	$(PERL) $(srcdir)/$(HELP2MAN) --name="install GRUB on your drive" \
-		--section=8 --output=$@ $<
-
-$(srcdir)/mbchk.1: ../util/mbchk $(srcdir)/$(HELP2MAN)
-	$(PERL) $(srcdir)/$(HELP2MAN) \
-		--name="check the format of a Multiboot kernel" \
-		--section=1 --output=$@ $<
-
-$(srcdir)/grub-md5-crypt.8: ../util/grub-md5-crypt $(srcdir)/$(HELP2MAN)
-	chmod 755 $<
-	$(PERL) $(srcdir)/$(HELP2MAN) \
-		--name="Encrypt a password in MD5 format" \
-		--section=8 --output=$@ $<
-
-$(srcdir)/grub-terminfo.8: ../util/grub-terminfo $(srcdir)/$(HELP2MAN)
-	chmod 755 $<
-	$(PERL) $(srcdir)/$(HELP2MAN) \
-		--name="Generate a terminfo command from a terminfo name" \
-		--section=8 --output=$@ $<
-endif
Makefile.am +1 -2
diff -Nur multiboot/Makefile.am multiboot.good/Makefile.am
@@ -1,4 +1,3 @@
 # Do not change this order if you don't know what you are doing.
 AUTOMAKE_OPTIONS = 1.7 gnu
-SUBDIRS = netboot stage2 stage1 lib grub util docs
-EXTRA_DIST = BUGS MAINTENANCE
+SUBDIRS = docs