Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore automatically generated files by autoconf and automake #1108

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ check_task:
ccache_setup_script:
- env IGNORE_OSVERSION=yes pkg install -y ccache-static
- ccache --max-size=${CCACHE_SIZE}
autotool_setup_script:
- env IGNORE_OSVERSION=yes pkg install -y autoconf automake libtool
# Build with asserts/debugging for checks. distcheck won't use asserts.
compile_script:
- ./autogen.sh
- ./configure --enable-debug=yes || { cat config.log; exit 1; }
- make ${MAKEJOBS}
test_jail_prep_script:
Expand Down
61 changes: 60 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,61 @@
# https://github.com/github/gitignore/blob/main/Autotools.gitignore
# http://www.gnu.org/software/automake

Makefile.in
/ar-lib
/mdate-sh
/py-compile
/test-driver
/ylwrap
.deps/
.dirstamp

# http://www.gnu.org/software/autoconf

autom4te.cache
/autoscan.log
/autoscan-*.log
/aclocal.m4
/compile
/config.cache
/config.guess
/config.h.in
/config.log
/config.status
/config.sub
/configure
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think i would keep configure in git for convenience

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

configure file is machine-dependent (e.g. latest autoconf version can differ in different platforms), and it has to be updated manually on git. If someone forgets to update ./configure with autogen.sh and only push changes on autogen.sh, this might cause inconvinience for other devs, too.

If there is a way to always keep configure up-to-date, I will leave it out from .gitignore

/configure.scan
/depcomp
/install-sh
/missing
/stamp-h1

# https://www.gnu.org/software/libtool/

/ltmain.sh

# http://www.gnu.org/software/texinfo

/texinfo.tex

# http://www.gnu.org/software/m4/

m4/libtool.m4
m4/ltoptions.m4
m4/ltsugar.m4
m4/ltversion.m4
m4/lt~obsolete.m4

# Generated Makefile
# (meta build system like autotools,
# can automatically generate from config.status script
# (which is called by configure script))
Makefile

# ----------------------------------------------------
# poudriere-specific gitignore from here

build-aux/
*.o
*.la
*.lo
Expand Down Expand Up @@ -35,13 +93,14 @@ Makefile
configure~
build-aux/install-sh~
build-aux/test-driver.orig
!build-aux/test-driver
config.cache
config.status
config.log
host-upgrade.sh
poudriere.fossil
src/bin/poudriere.8.gz
src/config.h
src/config.h.in
src/config.h.in~
src/etc/rc.d/poudriered
src/stamp-h1
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Mailing list: [[email protected] (lists.freebsd.org)](https://lists.freebs
Getting started with poudriere
------------------------------

1. Install it by typing `./configure`, `make` and `make install` at the top-level directory
1. Install it by typing `./autogen.sh`, `./configure`, `make` and `make install` at the top-level directory
2. Copy `/usr/local/etc/poudriere.conf.sample` to `/usr/local/etc/poudriere.conf`
3. Edit it to suit your needs
4. `man poudriere`, search for `EXAMPLES`, read the [wiki](https://github.com/freebsd/poudriere/wiki)
Expand Down
Loading