Front page | perl.perl5.porters |
Postings from June 2008
Re: [PATCH] .gitignore file
Thread Previous
|
Thread Next
From:
Sam Vilain
Date:
June 16, 2008 03:34
Subject:
Re: [PATCH] .gitignore file
Message ID:
48564265.2@vilain.net
Paul Fenwick wrote:
> G'day Rafael / p5p,
>
> Rafael Garcia-Suarez wrote:
>
>> Good work, but surely all those *.o, *.bs, blib, pm_to_blib, .exists
>> etc. can be factorized.
>
> Would you believe the thought of that never crossed my mind? I more or
> less auto-generated the file (run configure and make test; git status >
> .gitignore; regexp into a suitable form).
>
> I would do factoring, but since I just got almost all my autodie tests
> running under 5.8, I imagine I'm going to end up being rather focused on
> that for the remainder of the day.
Heh. Well, if it makes you feel any better, your list was useful for
me to come up with this change. I haven't tested it excludes exactly
everything right, but it's probably close and a good example of what
is possible using the .gitignore files.
Subject: [PATCH] [admin] set up .gitignore files
A list submitted by Paul Fenwick was briefly factored into
directory-specific rules.
---
Yes, I know the list under lib/ is yucky, but what can ya do.
.gitignore | 44 ++++++++++
ext/.gitignore | 6 ++
ext/B/.gitignore | 1 +
ext/ByteLoader/.gitignore | 1 +
ext/DB_File/.gitignore | 2 +
ext/Devel/.gitignore | 2 +
ext/Devel/PPPort/.gitignore | 4 +
ext/DynaLoader/.gitignore | 3 +
ext/Encode/.gitignore | 6 ++
ext/Errno/.gitignore | 2 +
ext/Fcntl/.gitignore | 1 +
ext/File/.gitignore | 1 +
ext/File/Glob/.gitignore | 1 +
ext/I18N/Langinfo/.gitignore | 1 +
ext/IO/.gitignore | 1 +
ext/IPC/SysV/.gitignore | 1 +
ext/POSIX/.gitignore | 1 +
ext/SDBM_File/sdbm/.gitignore | 2 +
ext/Socket/.gitignore | 1 +
ext/Sys/Syslog/.gitignore | 1 +
ext/Time/HiRes/.gitignore | 2 +
ext/Unicode/Normalize/.gitignore | 1 +
ext/Win32CORE/.gitignore | 1 +
ext/XS/.gitignore | 4 +
lib/.gitignore | 88 ++++++++++++++++++++
lib/Archive/Extract/t/src/.gitignore | 3 +
lib/Archive/Tar/t/src/.gitignore | 2 +
lib/CGI/t/.gitignore | 1 +
lib/CPANPLUS/.gitignore | 1 +
pod/.gitignore | 51 +++++++++++
t/.gitignore | 1 +
.../lib/EditorJunk/Plugin/.gitignore | 2 +
t/Module_Pluggable/lib/OddTest/Plugin/.gitignore | 1 +
utils/.gitignore | 4 +
x2p/.gitignore | 4 +
35 files changed, 248 insertions(+), 0 deletions(-)
create mode 100644 .gitignore
create mode 100644 ext/.gitignore
create mode 100644 ext/B/.gitignore
create mode 100644 ext/ByteLoader/.gitignore
create mode 100644 ext/DB_File/.gitignore
create mode 100644 ext/Devel/.gitignore
create mode 100644 ext/Devel/PPPort/.gitignore
create mode 100644 ext/DynaLoader/.gitignore
create mode 100644 ext/Encode/.gitignore
create mode 100644 ext/Errno/.gitignore
create mode 100644 ext/Fcntl/.gitignore
create mode 100644 ext/File/.gitignore
create mode 100644 ext/File/Glob/.gitignore
create mode 100644 ext/I18N/Langinfo/.gitignore
create mode 100644 ext/IO/.gitignore
create mode 100644 ext/IPC/SysV/.gitignore
create mode 100644 ext/POSIX/.gitignore
create mode 100644 ext/SDBM_File/sdbm/.gitignore
create mode 100644 ext/Socket/.gitignore
create mode 100644 ext/Sys/Syslog/.gitignore
create mode 100644 ext/Time/HiRes/.gitignore
create mode 100644 ext/Unicode/Normalize/.gitignore
create mode 100644 ext/Win32CORE/.gitignore
create mode 100644 ext/XS/.gitignore
create mode 100644 lib/.gitignore
create mode 100644 lib/Archive/Extract/t/src/.gitignore
create mode 100644 lib/Archive/Tar/t/src/.gitignore
create mode 100644 lib/CGI/t/.gitignore
create mode 100644 lib/CPANPLUS/.gitignore
create mode 100644 pod/.gitignore
create mode 100644 t/.gitignore
create mode 100644 t/Module_Pluggable/lib/EditorJunk/Plugin/.gitignore
create mode 100644 t/Module_Pluggable/lib/OddTest/Plugin/.gitignore
create mode 100644 utils/.gitignore
create mode 100644 x2p/.gitignore
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d3c477e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,44 @@
+.config
+
+# files produced by './configure.gnu' on a Linux machine
+/Makefile
+/Policy.sh
+/cflags
+/config.h
+/config.sh
+/makeaperl
+/makedepend
+/makedir
+/makefile
+/makefile.old
+/myconfig
+/opmini.c
+/perlmain.c
+/pod/Makefile
+/writemain
+/x2p/Makefile
+/x2p/cflags
+/x2p/makefile
+/x2p/makefile.old
+
+# general build products
+*.o *.a
+
+# ?
+ext.libs
+
+# these are scattered everywhere, ignore them
+.exists
+
+/miniperl
+/perl
+
+/extra.pods
+/generate_uudmap
+/uni.data
+/uudmap.h
+
+x2p/a2p
+x2p/find2perl
+x2p/psed
+x2p/s2p
diff --git a/ext/.gitignore b/ext/.gitignore
new file mode 100644
index 0000000..7c7b8db
--- /dev/null
+++ b/ext/.gitignore
@@ -0,0 +1,6 @@
+# ignore generated .c files, and other module build traces
+*.c *.bs
+blib
+pm_to_blib
+Makefile
+ppport.h
diff --git a/ext/B/.gitignore b/ext/B/.gitignore
new file mode 100644
index 0000000..8d3831e
--- /dev/null
+++ b/ext/B/.gitignore
@@ -0,0 +1 @@
+defsubs.h
diff --git a/ext/ByteLoader/.gitignore b/ext/ByteLoader/.gitignore
new file mode 100644
index 0000000..7d1ff6a
--- /dev/null
+++ b/ext/ByteLoader/.gitignore
@@ -0,0 +1 @@
+!/byterun.c
diff --git a/ext/DB_File/.gitignore b/ext/DB_File/.gitignore
new file mode 100644
index 0000000..f3e2b68
--- /dev/null
+++ b/ext/DB_File/.gitignore
@@ -0,0 +1,2 @@
+!/version.c
+/constants.h
diff --git a/ext/Devel/.gitignore b/ext/Devel/.gitignore
new file mode 100644
index 0000000..e9f3854
--- /dev/null
+++ b/ext/Devel/.gitignore
@@ -0,0 +1,2 @@
+!/PPPort/module2.c
+!/PPPort/module3.c
diff --git a/ext/Devel/PPPort/.gitignore b/ext/Devel/PPPort/.gitignore
new file mode 100644
index 0000000..817c190
--- /dev/null
+++ b/ext/Devel/PPPort/.gitignore
@@ -0,0 +1,4 @@
+/PPPort.pm
+#ignored in /ext
+#/ppport.h
+/module*.c
diff --git a/ext/DynaLoader/.gitignore b/ext/DynaLoader/.gitignore
new file mode 100644
index 0000000..9280799
--- /dev/null
+++ b/ext/DynaLoader/.gitignore
@@ -0,0 +1,3 @@
+!/dlutils.c
+/DynaLoader.pm
+/XSLoader.pm
diff --git a/ext/Encode/.gitignore b/ext/Encode/.gitignore
new file mode 100644
index 0000000..8300625
--- /dev/null
+++ b/ext/Encode/.gitignore
@@ -0,0 +1,6 @@
+!/encengine.c
+/Byte/Byte.xs
+*.exh
+*.h
+!/Encode/encode.h
+*.fnm
diff --git a/ext/Errno/.gitignore b/ext/Errno/.gitignore
new file mode 100644
index 0000000..fb9df20
--- /dev/null
+++ b/ext/Errno/.gitignore
@@ -0,0 +1,2 @@
+/Errno.pm
+/arch.txt
diff --git a/ext/Fcntl/.gitignore b/ext/Fcntl/.gitignore
new file mode 100644
index 0000000..2a06e93
--- /dev/null
+++ b/ext/Fcntl/.gitignore
@@ -0,0 +1 @@
+*.inc
diff --git a/ext/File/.gitignore b/ext/File/.gitignore
new file mode 100644
index 0000000..ce36536
--- /dev/null
+++ b/ext/File/.gitignore
@@ -0,0 +1 @@
+!/Glob/bsd_glob.c
diff --git a/ext/File/Glob/.gitignore b/ext/File/Glob/.gitignore
new file mode 100644
index 0000000..2a06e93
--- /dev/null
+++ b/ext/File/Glob/.gitignore
@@ -0,0 +1 @@
+*.inc
diff --git a/ext/I18N/Langinfo/.gitignore b/ext/I18N/Langinfo/.gitignore
new file mode 100644
index 0000000..2a06e93
--- /dev/null
+++ b/ext/I18N/Langinfo/.gitignore
@@ -0,0 +1 @@
+*.inc
diff --git a/ext/IO/.gitignore b/ext/IO/.gitignore
new file mode 100644
index 0000000..577c726
--- /dev/null
+++ b/ext/IO/.gitignore
@@ -0,0 +1 @@
+!/poll.c
diff --git a/ext/IPC/SysV/.gitignore b/ext/IPC/SysV/.gitignore
new file mode 100644
index 0000000..2a06e93
--- /dev/null
+++ b/ext/IPC/SysV/.gitignore
@@ -0,0 +1 @@
+*.inc
diff --git a/ext/POSIX/.gitignore b/ext/POSIX/.gitignore
new file mode 100644
index 0000000..2a06e93
--- /dev/null
+++ b/ext/POSIX/.gitignore
@@ -0,0 +1 @@
+*.inc
diff --git a/ext/SDBM_File/sdbm/.gitignore b/ext/SDBM_File/sdbm/.gitignore
new file mode 100644
index 0000000..289833e
--- /dev/null
+++ b/ext/SDBM_File/sdbm/.gitignore
@@ -0,0 +1,2 @@
+!*.c
+*.a
diff --git a/ext/Socket/.gitignore b/ext/Socket/.gitignore
new file mode 100644
index 0000000..2a06e93
--- /dev/null
+++ b/ext/Socket/.gitignore
@@ -0,0 +1 @@
+*.inc
diff --git a/ext/Sys/Syslog/.gitignore b/ext/Sys/Syslog/.gitignore
new file mode 100644
index 0000000..2a06e93
--- /dev/null
+++ b/ext/Sys/Syslog/.gitignore
@@ -0,0 +1 @@
+*.inc
diff --git a/ext/Time/HiRes/.gitignore b/ext/Time/HiRes/.gitignore
new file mode 100644
index 0000000..a89cf3e
--- /dev/null
+++ b/ext/Time/HiRes/.gitignore
@@ -0,0 +1,2 @@
+*.inc
+/xdefine
diff --git a/ext/Unicode/Normalize/.gitignore b/ext/Unicode/Normalize/.gitignore
new file mode 100644
index 0000000..424c745
--- /dev/null
+++ b/ext/Unicode/Normalize/.gitignore
@@ -0,0 +1 @@
+*.h
diff --git a/ext/Win32CORE/.gitignore b/ext/Win32CORE/.gitignore
new file mode 100644
index 0000000..cbe3f3d
--- /dev/null
+++ b/ext/Win32CORE/.gitignore
@@ -0,0 +1 @@
+!/Win32CORE.c
diff --git a/ext/XS/.gitignore b/ext/XS/.gitignore
new file mode 100644
index 0000000..2c69454
--- /dev/null
+++ b/ext/XS/.gitignore
@@ -0,0 +1,4 @@
+!/APItest/core.c
+!/APItest/exception.c
+!/APItest/notcore.c
+!/Typemap/stdio.c
diff --git a/lib/.gitignore b/lib/.gitignore
new file mode 100644
index 0000000..61d5659
--- /dev/null
+++ b/lib/.gitignore
@@ -0,0 +1,88 @@
+/B.pm
+/B
+/Compress
+/Config.pm
+/Config.pod
+/Config_heavy.pl
+/DB_File.pm
+/Data
+/Devel/DProf.pm
+/Devel/InnerPackage.pm
+/Devel/PPPort.pm
+/Devel/Peek.pm
+/Digest/MD5.pm
+/Digest/SHA.pm
+/DynaLoader.pm
+/Encode.pm
+/Encode
+/Errno.pm
+/ExtUtils/Miniperl.pm
+/Fcntl.pm
+/File/Glob.pm
+/File/GlobMapper.pm
+/Filter/Util
+/Hash
+/I18N/Langinfo.pm
+/IO.pm
+/IO/Compress
+/IO/Dir.pm
+/IO/File.pm
+/IO/Handle.pm
+/IO/Pipe.pm
+/IO/Poll.pm
+/IO/Seekable.pm
+/IO/Select.pm
+/IO/Socket.pm
+/IO/Socket
+/IO/Uncompress
+/IPC/Msg.pm
+/IPC/Semaphore.pm
+/IPC/SharedMem.pm
+/IPC/SysV.pm
+/List
+/MIME
+/Math/BigInt/FastCalc.pm
+/Module/Pluggable.pm
+/Module/Pluggable
+/O.pm
+/Opcode.pm
+/POSIX.pm
+/POSIX.pod
+/PerlIO/encoding.pm
+/PerlIO/scalar.pm
+/PerlIO/via.pm
+/Pod/Simple/t/corpus/2202jp.txt
+/Pod/Simple/t/corpus/2202jpx.txt
+/Pod/Simple/t/corpus/2202jpy.txt
+/Pod/Simple/t/corpus2/polish_utf16be_bom.txt
+/Pod/Simple/t/corpus2/polish_utf16le_bom.txt
+/SDBM_File.pm
+/Safe.pm
+/Scalar
+/Socket.pm
+/Storable.pm
+/Sys
+/Text/Soundex.pm
+/Time/HiRes.pm
+/Time/Piece.pm
+/Time/Seconds.pm
+/Unicode/Normalize.pm
+/XS
+/XSLoader.pm
+/attrs.pm
+/auto
+/encoding.pm
+/lib.pm
+/ops.pm
+/re.pm
+/threads.pm
+/threads
+/unicore/Canonical.pl
+/unicore/CombiningClass.pl
+/unicore/Decomposition.pl
+/unicore/Exact.pl
+/unicore/Name.pl
+/unicore/PVA.pl
+/unicore/Properties
+/unicore/To
+/unicore/lib
diff --git a/lib/Archive/Extract/t/src/.gitignore b/lib/Archive/Extract/t/src/.gitignore
new file mode 100644
index 0000000..ec8e2b6
--- /dev/null
+++ b/lib/Archive/Extract/t/src/.gitignore
@@ -0,0 +1,3 @@
+/*
+!/*.packed
+!/.gitignore
diff --git a/lib/Archive/Tar/t/src/.gitignore b/lib/Archive/Tar/t/src/.gitignore
new file mode 100644
index 0000000..083e183
--- /dev/null
+++ b/lib/Archive/Tar/t/src/.gitignore
@@ -0,0 +1,2 @@
+*.tar
+*.tgz
diff --git a/lib/CGI/t/.gitignore b/lib/CGI/t/.gitignore
new file mode 100644
index 0000000..f139e9d
--- /dev/null
+++ b/lib/CGI/t/.gitignore
@@ -0,0 +1 @@
+/upload_post_text.txt
diff --git a/lib/CPANPLUS/.gitignore b/lib/CPANPLUS/.gitignore
new file mode 100644
index 0000000..10d00b5
--- /dev/null
+++ b/lib/CPANPLUS/.gitignore
@@ -0,0 +1 @@
+*.gz
diff --git a/pod/.gitignore b/pod/.gitignore
new file mode 100644
index 0000000..c2adf9c
--- /dev/null
+++ b/pod/.gitignore
@@ -0,0 +1,51 @@
+# arch-specific pods
+/perlaix.pod
+/perlamiga.pod
+/perlapollo.pod
+/perlbeos.pod
+/perlbs2000.pod
+/perlce.pod
+/perlcn.pod
+/perlcygwin.pod
+/perldelta.pod
+/perldgux.pod
+/perldos.pod
+/perlepoc.pod
+/perlfreebsd.pod
+/perlhpux.pod
+/perlhurd.pod
+/perlirix.pod
+/perljp.pod
+/perlko.pod
+/perllinux.pod
+/perlmachten.pod
+/perlmacos.pod
+/perlmacosx.pod
+/perlmint.pod
+/perlmpeix.pod
+/perlnetware.pod
+/perlopenbsd.pod
+/perlos2.pod
+/perlos390.pod
+/perlos400.pod
+/perlplan9.pod
+/perlqnx.pod
+/perlriscos.pod
+/perlsolaris.pod
+/perlsymbian.pod
+/perltru64.pod
+/perltw.pod
+/perluts.pod
+/perlvmesa.pod
+/perlvms.pod
+/perlvos.pod
+/perlwin32.pod
+
+# scripts etc
+/pod2html
+/pod2latex
+/pod2man
+/pod2text
+/pod2usage
+/podchecker
+/podselect
diff --git a/t/.gitignore b/t/.gitignore
new file mode 100644
index 0000000..d49fc84
--- /dev/null
+++ b/t/.gitignore
@@ -0,0 +1 @@
+/perl
diff --git a/t/Module_Pluggable/lib/EditorJunk/Plugin/.gitignore b/t/Module_Pluggable/lib/EditorJunk/Plugin/.gitignore
new file mode 100644
index 0000000..34796cc
--- /dev/null
+++ b/t/Module_Pluggable/lib/EditorJunk/Plugin/.gitignore
@@ -0,0 +1,2 @@
+[#]*
+.#*
diff --git a/t/Module_Pluggable/lib/OddTest/Plugin/.gitignore b/t/Module_Pluggable/lib/OddTest/Plugin/.gitignore
new file mode 100644
index 0000000..8c9254e
--- /dev/null
+++ b/t/Module_Pluggable/lib/OddTest/Plugin/.gitignore
@@ -0,0 +1 @@
+/-Dodgy.pm
diff --git a/utils/.gitignore b/utils/.gitignore
new file mode 100644
index 0000000..4d7e41d
--- /dev/null
+++ b/utils/.gitignore
@@ -0,0 +1,4 @@
+*
+!/.gitignore
+!/*.SH
+!/*.PL
diff --git a/x2p/.gitignore b/x2p/.gitignore
new file mode 100644
index 0000000..609be86
--- /dev/null
+++ b/x2p/.gitignore
@@ -0,0 +1,4 @@
+/a2p
+/find2perl
+/psed
+/s2p
--
1.5.4.rc2.85.g7c8f5
Thread Previous
|
Thread Next