[PATCH libevdev] Review/update .gitignore files
Peter Hutterer
peter.hutterer at who-t.net
Mon Nov 18 02:51:00 PST 2013
On 16/11/13 06:55 , Gaetan Nadon wrote:
> Merge potentially useful patterns taken from other projects.
>
> Some application specific patterns were move to their respective directories.
>
> The only noticeable change is that *.patch is ignore to prevent accidental
> checkin of patches. The pattern "test-driver" could not be found and was
> removed.
>
> The test directory had not been updated since the move of all test cases
> in a single binary.
I wonder, how hard would it be to write a makefile hook that pulls down
a generic .gitignore file, adds a custom per-project section and saves
that as .gitignore. add it to cleanfiles/maintainercleanfiles and then
you dont' have to duplicate the various .gitignores. and I could just
re-use the hook in every project :)
something along the lines of:
gitignore: .gitignore.local
curl http://freedesktop.org/default.gitignore > .gitignore
cat $^ >> .gitignore
bit more polish, but that may be worthy pursuing.
Cheers,
Peter
>
> Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
> ---
>
> If the maintainer prefers a single toplvel .gitignore, I can amend the patch.
> Note that m4/.gitignore is always useful, should the macro be removed as we
> cannot have an empty dir in git.
>
> .gitignore | 69 +++++++++++++++++++++++++++++----------------------
> doc/.gitignore | 2 ++
> libevdev/.gitignore | 1 +
> m4/.gitignore | 5 ++++
> test/.gitignore | 9 ++-----
> tools/.gitignore | 1 +
> 6 files changed, 51 insertions(+), 36 deletions(-)
> create mode 100644 doc/.gitignore
> create mode 100644 libevdev/.gitignore
> create mode 100644 m4/.gitignore
> create mode 100644 tools/.gitignore
>
> diff --git a/.gitignore b/.gitignore
> index 40cf5e1..957e4c0 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -1,8 +1,12 @@
> +# GNU Build System (Autotools)
> aclocal.m4
> +*.announce
> autom4te.cache/
> autoscan.log
> +build-aux/
> ChangeLog
> compile
> +config.cache
> config.guess
> config.h
> config.h.in
> @@ -15,45 +19,52 @@ config.sub
> configure
> configure.scan
> depcomp
> -.deps/
> -INSTALL
> +.dirstamp
> install-sh
> -.libs/
> libtool
> -libtool.m4
> ltmain.sh
> -lt~obsolete.m4
> -ltoptions.m4
> -ltsugar.m4
> -ltversion.m4
> Makefile
> Makefile.in
> mdate-sh
> missing
> mkinstalldirs
> -*.pc
> -py-compile
> stamp-h?
> -symlink-tree
> -texinfo.tex
> -ylwrap
> -*.la
> -*.lo
> -*.o
> +# Edit Compile Debug Document Distribute
> *~
> -*.swp
> -.vimdir
> -*.tar.*
> -*.3
> -libevdev-events
> -event-names.h
> -html
> -libevdev-*/
> +*.[0-9]
> +*.[0-9]x
> +*.bak
> +*.bin
> +core
> +.deps/
> +*.dll
> +*.exe
> +*.gcda
> *.gcno
> *.gcov
> -*.gcda
> -gcov-report.txt
> -test-driver
> -libevdev.doxygen
> -*.announce
> +*.kld
> +*.ko
> +*.ko.cmd
> +*.lai
> +.libs/
> +*.l[oa]
> +*.[oa]
> +*.objq
> +*.patch
> +*.pc
> +*.pdb
> +*.pyc
> +py-compile
> +*.pyo
> +*.so
> +*.swo
> +*.swp
> +symlink-tree
> tags
> +*.tar.bz2
> +*.tar.gz
> +*.tar.xz
> +texinfo.tex
> +.vimdir
> +ylwrap
> +# Application Specific Files
> diff --git a/doc/.gitignore b/doc/.gitignore
> new file mode 100644
> index 0000000..823fa26
> --- /dev/null
> +++ b/doc/.gitignore
> @@ -0,0 +1,2 @@
> +html/
> +libevdev.doxygen
> diff --git a/libevdev/.gitignore b/libevdev/.gitignore
> new file mode 100644
> index 0000000..339d72d
> --- /dev/null
> +++ b/libevdev/.gitignore
> @@ -0,0 +1 @@
> +event-names.h
> diff --git a/m4/.gitignore b/m4/.gitignore
> new file mode 100644
> index 0000000..38066dd
> --- /dev/null
> +++ b/m4/.gitignore
> @@ -0,0 +1,5 @@
> +libtool.m4
> +ltoptions.m4
> +ltsugar.m4
> +ltversion.m4
> +lt~obsolete.m4
> diff --git a/test/.gitignore b/test/.gitignore
> index 8fdc8e1..3117f82 100644
> --- a/test/.gitignore
> +++ b/test/.gitignore
> @@ -1,7 +1,2 @@
> -libevdev-print
> -libevdev-events
> -
> -# ignore all tests, but not .c/.h files
> -test-*
> -!test-*.c
> -!test-*.h
> +gcov-report.txt
> +test-libevdev
> diff --git a/tools/.gitignore b/tools/.gitignore
> new file mode 100644
> index 0000000..a511263
> --- /dev/null
> +++ b/tools/.gitignore
> @@ -0,0 +1 @@
> +libevdev-events
>
More information about the Input-tools
mailing list