.gitignores: Organize and clean up.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 30 Apr 2022 19:54:48 +0000 (20:54 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 1 May 2022 11:25:29 +0000 (12:25 +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
m4/.gitignore [deleted file]
pub/.gitignore [new file with mode: 0644]
pub/t/.gitignore [deleted file]
symm/.gitignore
symm/t/.gitignore [deleted file]

index 9c2b37d..3a32781 100644 (file)
@@ -1,10 +1,22 @@
+## Pervasive build machinery.
 Makefile.in
-/aclocal.m4
-/configure
+
+## Additional kinds of object files.
+*.sage.py
+*.t
+*.to
+
+## Other common files.
 /COPYING.LIB
+
+## Top-level generated files.
+/aclocal.m4
 /autom4te.cache/
 /config/
+/configure
 /precomp/
-*.sage.py
-*.t
-*.to
+
+## m4 configuration macros installed by `aclocal' and `libtoolize'.
+/m4/ax_*.m4
+/m4/libtool.m4
+/m4/lt*.m4
index 4b961cd..c5fc516 100644 (file)
@@ -1,10 +1,13 @@
-files
-tmp
-substvars
-*.substvars
-*.debhelper
-catacomb
-catacomb-bin
-catacomb-data
-catacomb-dev
-catacomb2
+## General stuff.
+/build/
+/files
+/substvars
+/tmp/
+/*.debhelper
+/*.substvars
+
+## Individual packages.
+/catacomb-bin/
+/catacomb-data/
+/catacomb-dev/
+/catacomb2/
diff --git a/m4/.gitignore b/m4/.gitignore
deleted file mode 100644 (file)
index 94f2b51..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-libtool.m4
-lt*.m4
diff --git a/pub/.gitignore b/pub/.gitignore
new file mode 100644 (file)
index 0000000..769d67f
--- /dev/null
@@ -0,0 +1,2 @@
+## Generated test vector files.
+/t/ed25519
diff --git a/pub/t/.gitignore b/pub/t/.gitignore
deleted file mode 100644 (file)
index 1da7fc0..0000000
+++ /dev/null
@@ -1 +0,0 @@
-ed25519
index 5c18b12..689f11d 100644 (file)
@@ -1,41 +1,11 @@
-/modes/
+## Generated modes.
 /modes.am
+/modes/
+
+## Stub implementation files.
 /stubs.am
 /stubs.gen-stamp
 
-/t/salsa20
-/t/sha3
-
-/sha224.c
-/sha224.h
-/sha384.h
-/sha384.c
-/sha512-224.c
-/sha512-224.h
-/sha512-256.c
-/sha512-256.h
-
-/safersk.c
-/safersk.h
-
-/whirlpool256.c
-/whirlpool256.h
-
-/sha3-224.c
-/sha3-224.h
-/sha3-256.c
-/sha3-256.h
-/sha3-384.c
-/sha3-384.h
-/sha3-512.c
-/sha3-512.h
-/kmac128.h
-/kmac256.h
-/shake128.h
-/shake256.h
-/shake128-xof.h
-/shake256-xof.h
-
 /chacha20.h
 /chacha12.h
 /chacha8.h
 /chacha12-poly1305.h
 /chacha8-poly1305.h
 
+/kmac128.h
+/kmac256.h
+
+/safersk.[ch]
+
 /salsa2012.h
 /salsa208.h
 /salsa20-ietf.h
 /salsa20-poly1305.h
 /salsa2012-poly1305.h
 /salsa208-poly1305.h
+
+/sha224.[ch]
+/sha384.[ch]
+/sha512-224.[ch]
+/sha512-256.[ch]
+
+/sha3-224.[ch]
+/sha3-256.[ch]
+/sha3-384.[ch]
+/sha3-512.[ch]
+
+/shake128.h
+/shake256.h
+/shake128-xof.h
+/shake256-xof.h
+
+/whirlpool256.[ch]
+
+## Generated test vector files.
+/t/cast256
+/t/mars
+/t/rijndael
+/t/salsa20
+/t/serpent
+/t/sha3
+/t/twofish
diff --git a/symm/t/.gitignore b/symm/t/.gitignore
deleted file mode 100644 (file)
index 88cf471..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-cast256
-mars
-rijndael
-serpent
-twofish