6b2dd0
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
bbc6a8
From: Peter Jones <pjones@redhat.com>
e15314
Date: Mon, 8 Jul 2019 12:55:29 +0200
31cddd
Subject: [PATCH] re-write .gitignore
bbc6a8
bbc6a8
---
e15314
 .gitignore                        | 366 +++++++++++++++-----------------------
e15314
 docs/.gitignore                   |   5 +
e15314
 grub-core/.gitignore              |  16 ++
bbc6a8
 grub-core/lib/.gitignore          |   1 +
bbc6a8
 include/grub/gcrypt/.gitignore    |   2 +
e15314
 po/.gitignore                     |   5 +
e15314
 util/bash-completion.d/.gitignore |   2 +
e15314
 7 files changed, 171 insertions(+), 226 deletions(-)
bbc6a8
 create mode 100644 docs/.gitignore
bbc6a8
 create mode 100644 grub-core/.gitignore
bbc6a8
 create mode 100644 grub-core/lib/.gitignore
bbc6a8
 create mode 100644 include/grub/gcrypt/.gitignore
bbc6a8
 create mode 100644 po/.gitignore
bbc6a8
 create mode 100644 util/bash-completion.d/.gitignore
bbc6a8
bbc6a8
diff --git a/.gitignore b/.gitignore
e15314
index 819cd185d44..b45a633f3d1 100644
bbc6a8
--- a/.gitignore
bbc6a8
+++ b/.gitignore
e15314
@@ -1,237 +1,151 @@
e15314
+# things ./autogen.sh will create
e15314
+/Makefile.utilgcry.def
e15314
+/ABOUT-NLS
e15314
+/aclocal.m4
e15314
+/autom4te.cache
e15314
+/build-aux
e15314
+/configure
e15314
+/gnulib
e15314
+/grub-core/lib/gnulib/
e15314
+/Makefile
e15314
+
e15314
+# things very common editors create that we never want
e15314
 *~
bbc6a8
-00_header
bbc6a8
-10_*
bbc6a8
-20_linux_xen
bbc6a8
-30_os-prober
bbc6a8
-40_custom
bbc6a8
-41_custom
bbc6a8
-*.1
bbc6a8
-*.8
e15314
-ABOUT-NLS
bbc6a8
-aclocal.m4
bbc6a8
-ahci_test
bbc6a8
-ascii.bitmaps
bbc6a8
-ascii.h
bbc6a8
-autom4te.cache
e15314
-build-aux
bbc6a8
-build-grub-gen-asciih
bbc6a8
-build-grub-gen-widthspec
bbc6a8
-build-grub-mkfont
bbc6a8
-cdboot_test
bbc6a8
-cmp_test
bbc6a8
-config.cache
bbc6a8
-config.guess
bbc6a8
-config.h
bbc6a8
-config-util.h
bbc6a8
-config-util.h.in
bbc6a8
-config.log
bbc6a8
-config.status
bbc6a8
-config.sub
bbc6a8
-configure
bbc6a8
-core_compress_test
bbc6a8
-DISTLIST
bbc6a8
-docs/*.info
bbc6a8
-docs/stamp-vti
bbc6a8
-docs/version.texi
bbc6a8
-ehci_test
bbc6a8
-example_grub_script_test
bbc6a8
-example_scripted_test
bbc6a8
-example_unit_test
bbc6a8
+.*.sw?
3e07ee
+*.patch
bbc6a8
+
e15314
+# stuff you're likely to make while building test trees
e15314
+grub.cfg
e15314
+/build*/
e15314
+
bbc6a8
+# built objects across the whole tree
bbc6a8
+Makefile.in
bbc6a8
+*.a
bbc6a8
+*.am
e15314
+*.efi
bbc6a8
 *.exec
bbc6a8
-*.exec.exe
bbc6a8
-fddboot_test
bbc6a8
-genkernsyms.sh
bbc6a8
-gensymlist.sh
bbc6a8
-gentrigtables
bbc6a8
-gentrigtables.exe
bbc6a8
-gettext_strings_test
e15314
-/gnulib
bbc6a8
-grub-bin2h
bbc6a8
-/grub-bios-setup
bbc6a8
-/grub-bios-setup.exe
bbc6a8
-grub_cmd_date
bbc6a8
-grub_cmd_echo
bbc6a8
-grub_cmd_regexp
bbc6a8
-grub_cmd_set_date
bbc6a8
-grub_cmd_sleep
bbc6a8
-/grub-editenv
bbc6a8
-/grub-editenv.exe
bbc6a8
-grub-emu
bbc6a8
-grub-emu-lite
bbc6a8
-grub-emu.exe
bbc6a8
-grub-emu-lite.exe
bbc6a8
-grub_emu_init.c
bbc6a8
-grub_emu_init.h
bbc6a8
-/grub-file
bbc6a8
-/grub-file.exe
bbc6a8
-grub-fstest
bbc6a8
-grub-fstest.exe
bbc6a8
-grub_fstest_init.c
bbc6a8
-grub_fstest_init.h
bbc6a8
-grub_func_test
bbc6a8
-grub-install
bbc6a8
-grub-install.exe
bbc6a8
-grub-kbdcomp
bbc6a8
-/grub-macbless
bbc6a8
-/grub-macbless.exe
bbc6a8
-grub-macho2img
bbc6a8
-/grub-menulst2cfg
bbc6a8
-/grub-menulst2cfg.exe
bbc6a8
-/grub-mk*
bbc6a8
-grub-mount
bbc6a8
-/grub-ofpathname
bbc6a8
-/grub-ofpathname.exe
bbc6a8
-grub-core/build-grub-pe2elf.exe
bbc6a8
-/grub-probe
bbc6a8
-/grub-probe.exe
bbc6a8
-grub_probe_init.c
bbc6a8
-grub_probe_init.h
bbc6a8
-/grub-reboot
bbc6a8
-grub_script_blanklines
bbc6a8
-grub_script_blockarg
bbc6a8
-grub_script_break
bbc6a8
-grub-script-check
bbc6a8
-grub-script-check.exe
bbc6a8
-grub_script_check_init.c
bbc6a8
-grub_script_check_init.h
bbc6a8
-grub_script_comments
bbc6a8
-grub_script_continue
bbc6a8
-grub_script_dollar
bbc6a8
-grub_script_echo1
bbc6a8
-grub_script_echo_keywords
bbc6a8
-grub_script_escape_comma
bbc6a8
-grub_script_eval
bbc6a8
-grub_script_expansion
bbc6a8
-grub_script_final_semicolon
bbc6a8
-grub_script_for1
bbc6a8
-grub_script_functions
bbc6a8
-grub_script_gettext
bbc6a8
-grub_script_if
bbc6a8
-grub_script_leading_whitespace
bbc6a8
-grub_script_no_commands
bbc6a8
-grub_script_not
bbc6a8
-grub_script_return
bbc6a8
-grub_script_setparams
bbc6a8
-grub_script_shift
bbc6a8
-grub_script_strcmp
bbc6a8
-grub_script_test
bbc6a8
-grub_script_vars1
bbc6a8
-grub_script_while1
bbc6a8
-grub_script.tab.c
bbc6a8
-grub_script.tab.h
bbc6a8
-grub_script.yy.c
bbc6a8
-grub_script.yy.h
bbc6a8
-grub-set-default
bbc6a8
-grub_setup_init.c
bbc6a8
-grub_setup_init.h
bbc6a8
-grub-shell
bbc6a8
-grub-shell-tester
bbc6a8
-grub-sparc64-setup
bbc6a8
-grub-sparc64-setup.exe
bbc6a8
-/grub-syslinux2cfg
bbc6a8
-/grub-syslinux2cfg.exe
bbc6a8
-gzcompress_test
bbc6a8
-hddboot_test
bbc6a8
-help_test
bbc6a8
-*.img
bbc6a8
 *.image
bbc6a8
-*.image.exe
bbc6a8
-include/grub/cpu
bbc6a8
-include/grub/machine
e15314
-INSTALL.grub
bbc6a8
-install-sh
bbc6a8
-lib/libgcrypt-grub
bbc6a8
-libgrub_a_init.c
bbc6a8
-*.log
bbc6a8
+*.img
bbc6a8
+*.info
bbc6a8
 *.lst
bbc6a8
-lzocompress_test
bbc6a8
 *.marker
bbc6a8
-Makefile
e15314
 /m4
bbc6a8
 *.mod
bbc6a8
-mod-*.c
bbc6a8
-missing
bbc6a8
-netboot_test
bbc6a8
+*.module
bbc6a8
 *.o
bbc6a8
-*.a
bbc6a8
-ohci_test
bbc6a8
-partmap_test
bbc6a8
-pata_test
bbc6a8
 *.pf2
bbc6a8
-*.pp
bbc6a8
-po/*.mo
bbc6a8
-po/grub.pot
e15314
-po/Makefile.in.in
e15314
-po/Makevars
e15314
-po/Makevars.template
bbc6a8
-po/POTFILES
e15314
-po/Rules-quot
bbc6a8
-po/stamp-po
bbc6a8
-printf_test
bbc6a8
-priority_queue_unit_test
bbc6a8
-pseries_test
bbc6a8
-stamp-h
bbc6a8
-stamp-h1
bbc6a8
-stamp-h.in
bbc6a8
-symlist.c
bbc6a8
-symlist.h
bbc6a8
-trigtables.c
bbc6a8
-*.trs
bbc6a8
-uhci_test
bbc6a8
-update-grub_lib
bbc6a8
-unidata.c
bbc6a8
-xzcompress_test
bbc6a8
-Makefile.in
bbc6a8
-GPATH
bbc6a8
-GRTAGS
bbc6a8
-GSYMS
bbc6a8
-GTAGS
bbc6a8
-compile
bbc6a8
-depcomp
bbc6a8
-mdate-sh
bbc6a8
-texinfo.tex
bbc6a8
-grub-core/lib/libgcrypt-grub
bbc6a8
-.deps
bbc6a8
-.deps-util
bbc6a8
-.deps-core
bbc6a8
+*.yy.[ch]
bbc6a8
+.deps/
bbc6a8
+.deps-core/
bbc6a8
+.deps-util/
bbc6a8
 .dirstamp
bbc6a8
-Makefile.util.am
bbc6a8
-contrib
bbc6a8
-grub-core/bootinfo.txt
bbc6a8
-grub-core/Makefile.core.am
bbc6a8
-grub-core/Makefile.gcry.def
bbc6a8
-grub-core/contrib
bbc6a8
-grub-core/gdb_grub
bbc6a8
-grub-core/genmod.sh
bbc6a8
-grub-core/gensyminfo.sh
bbc6a8
-grub-core/gmodule.pl
bbc6a8
-grub-core/grub.chrp
bbc6a8
-grub-core/modinfo.sh
bbc6a8
-grub-core/*.module
bbc6a8
-grub-core/*.module.exe
bbc6a8
-grub-core/*.pp
bbc6a8
-grub-core/kernel.img.bin
bbc6a8
-util/bash-completion.d/grub
e15314
-grub-core/lib/gnulib
bbc6a8
-grub-core/rs_decoder.h
bbc6a8
-widthspec.bin
bbc6a8
-widthspec.h
bbc6a8
-docs/stamp-1
bbc6a8
-docs/version-dev.texi
bbc6a8
-Makefile.utilgcry.def
bbc6a8
-po/*.po
bbc6a8
-po/*.gmo
bbc6a8
-po/LINGUAS
bbc6a8
-po/remove-potcdate.sed
bbc6a8
-include/grub/gcrypt/gcrypt.h
bbc6a8
-include/grub/gcrypt/g10lib.h
bbc6a8
-po/POTFILES.in
bbc6a8
-po/POTFILES-shell.in
bbc6a8
-/grub-glue-efi
bbc6a8
-/grub-render-label
bbc6a8
-/grub-glue-efi.exe
bbc6a8
-/grub-render-label.exe
bbc6a8
+
bbc6a8
+# next are things you get if you do ./configure in the topdir (for e.g.
bbc6a8
+# "make dist" invocation.
bbc6a8
+/config-util.h
bbc6a8
+/config.h
bbc6a8
+/include/grub/cpu
bbc6a8
+/include/grub/machine
e15314
+/INSTALL
e15314
+/INSTALL.grub
e15314
+/po/Makefile.in.in
e15314
+/po/Makevars
e15314
+/po/Makevars.template
bbc6a8
+/po/POTFILES
e15314
+/po/Rules-quot
bbc6a8
+/stamp-h
bbc6a8
+/stamp-h1
e15314
+bootstrap.log
bbc6a8
+config.log
bbc6a8
+config.status
bbc6a8
+
bbc6a8
+# stuff "make dist" creates
bbc6a8
+ChangeLog
bbc6a8
+grub-*.tar
bbc6a8
+grub-*.tar.*
bbc6a8
+
bbc6a8
+# stuff "make" creates
bbc6a8
+/[[:digit:]][[:digit:]]_?*
dbfd2e
+/ascii.h
dbfd2e
+/build-grub-gen-asciih
dbfd2e
+/build-grub-gen-widthspec
bbc6a8
+/build-grub-mkfont
bbc6a8
+/config-util.h.in
bbc6a8
 /garbage-gen
bbc6a8
-/garbage-gen.exe
bbc6a8
-/grub-fs-tester
bbc6a8
-grub-core/build-grub-module-verifier
bbc6a8
+/grub*-bios-setup
bbc6a8
+/grub*-bios-setup.8
bbc6a8
+/grub*-editenv
bbc6a8
+/grub*-editenv.1
bbc6a8
+/grub*-file
bbc6a8
+/grub*-file.1
bbc6a8
+/grub*-fs-tester
bbc6a8
+/grub*-fstest
bbc6a8
+/grub*-fstest.1
e15314
+/grub*-get-kernel-settings
e15314
+/grub*-get-kernel-settings.3
bbc6a8
+/grub*-glue-efi
bbc6a8
+/grub*-glue-efi.1
bbc6a8
+/grub*-install
bbc6a8
+/grub*-install.8
bbc6a8
+/grub*-kbdcomp
bbc6a8
+/grub*-kbdcomp.1
bbc6a8
+/grub*-macbless
bbc6a8
+/grub*-macbless.8
bbc6a8
+/grub*-menulst2cfg
bbc6a8
+/grub*-menulst2cfg.1
e15314
+/grub*-mount
e15314
+/grub*-mount.1
bbc6a8
+/grub*-mkconfig
bbc6a8
+/grub*-mkconfig.8
bbc6a8
+/grub*-mkconfig_lib
bbc6a8
+/grub*-mkfont
bbc6a8
+/grub*-mkfont.1
bbc6a8
+/grub*-mkimage
bbc6a8
+/grub*-mkimage.1
bbc6a8
+/grub*-mklayout
bbc6a8
+/grub*-mklayout.1
bbc6a8
+/grub*-mknetdir
bbc6a8
+/grub*-mknetdir.1
bbc6a8
+/grub*-mkpasswd-pbkdf2
bbc6a8
+/grub*-mkpasswd-pbkdf2.1
bbc6a8
+/grub*-mkrelpath
bbc6a8
+/grub*-mkrelpath.1
bbc6a8
+/grub*-mkrescue
bbc6a8
+/grub*-mkrescue.1
bbc6a8
+/grub*-mkstandalone
bbc6a8
+/grub*-mkstandalone.1
bbc6a8
+/grub*-ofpathname
bbc6a8
+/grub*-ofpathname.8
bbc6a8
+/grub*-probe
bbc6a8
+/grub*-probe.8
bbc6a8
+/grub*-reboot
bbc6a8
+/grub*-reboot.8
bbc6a8
+/grub*-render-label
bbc6a8
+/grub*-render-label.1
e15314
+/grub*-rpm-sort
e15314
+/grub*-rpm-sort.8
bbc6a8
+/grub*-script-check
bbc6a8
+/grub*-script-check.1
e15314
+/grub*-set-bootflag
e15314
+/grub*-set-bootflag.1
bbc6a8
+/grub*-set-default
bbc6a8
+/grub*-set-default.8
e15314
+/grub*-set-password
e15314
+/grub*-set-password.8
bbc6a8
+/grub*-shell
bbc6a8
+/grub*-shell-tester
bbc6a8
+/grub*-sparc64-setup
bbc6a8
+/grub*-sparc64-setup.8
bbc6a8
+/grub*-syslinux2cfg
bbc6a8
+/grub*-syslinux2cfg.1
e15314
+/grub*-switch-to-blscfg
e15314
+/grub*-switch-to-blscfg.8
bbc6a8
+/grub_fstest.pp
bbc6a8
+/grub_fstest_init.c
bbc6a8
+/grub_fstest_init.lst
bbc6a8
+/grub_script.tab.[ch]
bbc6a8
+/libgrub.pp
bbc6a8
+/libgrub_a_init.c
bbc6a8
+/libgrub_a_init.lst
bbc6a8
+/stamp-h.in
dbfd2e
+/widthspec.h
bbc6a8
diff --git a/docs/.gitignore b/docs/.gitignore
bbc6a8
new file mode 100644
e15314
index 00000000000..e1d849ef95b
bbc6a8
--- /dev/null
bbc6a8
+++ b/docs/.gitignore
e15314
@@ -0,0 +1,5 @@
bbc6a8
+/*.in
e15314
+/Makefile
bbc6a8
+/stamp-1
bbc6a8
+/stamp-vti
bbc6a8
+/version*.texi
bbc6a8
diff --git a/grub-core/.gitignore b/grub-core/.gitignore
bbc6a8
new file mode 100644
e15314
index 00000000000..2acce281159
bbc6a8
--- /dev/null
bbc6a8
+++ b/grub-core/.gitignore
e15314
@@ -0,0 +1,16 @@
bbc6a8
+/*.lst
e15314
+/Makefile
bbc6a8
+/Makefile.gcry.def
bbc6a8
+/unidata.c
bbc6a8
+/build-grub-module-verifier
bbc6a8
+/gdb_grub
bbc6a8
+/genmod.sh
bbc6a8
+/gensyminfo.sh
bbc6a8
+/gentrigtables
bbc6a8
+/gmodule.pl
bbc6a8
+/grub_script.tab.[ch]
bbc6a8
+/modinfo.sh
bbc6a8
+/rs_decoder.h
bbc6a8
+/symlist.c
bbc6a8
+/symlist.h
bbc6a8
+/trigtables.c
bbc6a8
diff --git a/grub-core/lib/.gitignore b/grub-core/lib/.gitignore
bbc6a8
new file mode 100644
ec4acb
index 00000000000..68154591404
bbc6a8
--- /dev/null
bbc6a8
+++ b/grub-core/lib/.gitignore
bbc6a8
@@ -0,0 +1 @@
bbc6a8
+/libgcrypt-grub/
bbc6a8
diff --git a/include/grub/gcrypt/.gitignore b/include/grub/gcrypt/.gitignore
bbc6a8
new file mode 100644
ec4acb
index 00000000000..8fbf5646246
bbc6a8
--- /dev/null
bbc6a8
+++ b/include/grub/gcrypt/.gitignore
bbc6a8
@@ -0,0 +1,2 @@
bbc6a8
+g10lib.h
bbc6a8
+gcrypt.h
bbc6a8
diff --git a/po/.gitignore b/po/.gitignore
bbc6a8
new file mode 100644
e15314
index 00000000000..f507e7741e3
bbc6a8
--- /dev/null
bbc6a8
+++ b/po/.gitignore
e15314
@@ -0,0 +1,5 @@
e15314
+/Makefile
bbc6a8
+/POTFILES*.in
bbc6a8
+/grub.pot
bbc6a8
+/remove-potcdate.sed
bbc6a8
+/stamp-po
bbc6a8
diff --git a/util/bash-completion.d/.gitignore b/util/bash-completion.d/.gitignore
bbc6a8
new file mode 100644
e15314
index 00000000000..6813a527ad3
bbc6a8
--- /dev/null
bbc6a8
+++ b/util/bash-completion.d/.gitignore
e15314
@@ -0,0 +1,2 @@
e15314
+Makefile
bbc6a8
+grub