forked from tjunier/newick_utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autotoolize
executable file
·45 lines (31 loc) · 1.23 KB
/
autotoolize
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
I'm trying to get the Git repository to be better than what it was when I was
using Subversion - not that it was a problem with Subversion per se, it's just
that I've embarked on a big change, so I might as well try and fix this while
I'm at it.
Basiclly, I want only the source files to be in the repository: anything that
can be generated should not be there, because i) it's a waste of space, and
ii) local versions may conflict.
The idea is, then, that after doing a git clone, you should just need to run
./configure -- since this is what happens when you compile from source.
So, my repository being in an unknown state, I did:
$ autoreconf --install
which should make it ./configure - runnable. Then I did
$ ./configure && make check
All went smoothly, so
$ make distclean.
This I'll use as a starting point. I did:
$ git add .
$ git st
...
# new file: autom4te.cache/output.0
# new file: autom4te.cache/output.1
# new file: autom4te.cache/requests
# new file: autom4te.cache/traces.0
# new file: autom4te.cache/traces.1
...
Hmm, I have an inkling that all the cache contents should not really be under
version control, so I'll ignore them:
$ git reset HEAD autom4te.cache/*
$ cat > .gitignore
autom4te.cache
And then I committed.