I've been working on a PHP module (i.e., written in C to extend PHP). It's been a rather torturous process but I finally have some code that seems to be working reasonably well. I want to post it on github so that people can review and contribute, but I want to avoid posting any files that should not be there or would otherwise pollute and complicate the project. I want it to be nice and clean.
I searched around and found this sample .gitignore file on github but it barely scratches the surface of the files I've got in my directory. I'm hoping someone can tell me
a) what should be in my .gitignore file?
b) can I delete any of these types of files without breaking my project?
The directory contains files with these suffixes:
Code:
==extensions==
.dsp
.orig -- i use this to distinguish a couple of original files before I was maintainer
.php
.lo
.m4
.la
.h
.txt
.in
.awk
.so
.lai
.o
.w32
.nice
.guess
.status
.c
.global
.objects
.sh
.fragments
.deps
.sub
.log
.dsw
==
Should any of these be excluded in .gitignore? Or removed?
there also appear to be a variety of makefiles:
Code:
==makefiles==
./build/scan_makefile_in.awk
./Makefile
./Makefile.global
./Makefile.objects
./Makefile.fragments
==
and finally, some files have no extension
Code:
==files without any extension==
./build/shtool
./mkinstalldirs
./install-sh
./missing
./configure
./libtool
./Makefile
==
I'm guessing I need Makefile and that most of these are required, but should they go into a git repo? Also, the file mkinstalldirs is completely empty.
Any help/guidance would be much appreciated! I really want to get this out the door.