From 1aa7ea9d9b0b2542734a6695bc915dbc55cc913e Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sat, 30 Apr 2022 19:51:14 +0100 Subject: [PATCH] .gitignore: Organize and clean up. Divide into sections and add headings; add leading `/' to patterns which are only expected to match in the same directory as the `.gitignore' file; and add trailing `/' to patterns which should match directories. --- .gitignore | 28 ++++++++++++++++------------ debian/.gitignore | 28 ++++++++++++++-------------- 2 files changed, 30 insertions(+), 26 deletions(-) diff --git a/.gitignore b/.gitignore index 5ab57a7..4767c46 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1,17 @@ +## Pervasive build machinery. Makefile.in -aclocal.m4 -configure -config -COPYING.LIB -COPYING -config.guess -config.sub -install-sh -mdwopt.c -mdwopt.h -autom4te.cache -precomp + +## Common source files. +/ui/mdwopt.c +/ui/mdwopt.h + +## Other common files. +/COPYING.LIB +/COPYING + +## Top-level generated files. +/aclocal.m4 +/autom4te.cache/ +/configure +/config/ +/precomp/ diff --git a/debian/.gitignore b/debian/.gitignore index 8f3c7c7..7fb2508 100644 --- a/debian/.gitignore +++ b/debian/.gitignore @@ -1,19 +1,19 @@ ## General stuff. -files -build-* -tmp -tmp-* -substvars -*.debhelper -*.substvars -stamp-* -*.log +/build-*/ +/files +/substvars +/tmp/ +/tmp-*/ +/*.debhelper +/*.substvars +/stamp-* +/*.log ## Individual packages. -mlib2 -mlib2-adns -mlib-bin -mlib-dev +/mlib2/ +/mlib2-adns/ +/mlib-bin/ +/mlib-dev/ ## Other debris. -mlib2-adns.install +/mlib2-adns.install -- 2.11.0