.gitignore: Organize and clean up.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 30 Apr 2022 18:51:14 +0000 (19:51 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 30 Apr 2022 19:03:19 +0000 (20:03 +0100)
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
debian/.gitignore

index 5ab57a7..4767c46 100644 (file)
@@ -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/
index 8f3c7c7..7fb2508 100644 (file)
@@ -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