aboutsummaryrefslogtreecommitdiffstats
path: root/autogen.sh
blob: d8c4b5e04dda199e47cabc4e52b2a0e5ea2e593c (plain)
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
#!/bin/bash

ccan_modules="talloc read_write_all build_assert array_size endian"

# Add ccan upstream sources
if [ ! -e lib/ccan.git/Makefile ]
then
	git submodule init
	git submodule update
fi

# create ccan build tree
if [ ! -e lib/ccan ]
then
	lib/ccan.git/tools/create-ccan-tree \
		--build-type=automake lib/ccan $ccan_modules
fi

# Create generatable docs from git
(
	echo "Authors of sbsigntool:"
	echo
	git log --format='%an' | sort -u | sed 's,^,\t,'
) > AUTHORS

# Generate simple ChangeLog
git log --date=short --format='%ad %t %an <%ae>%n%n  * %s%n' > ChangeLog

# automagic
aclocal
autoheader
autoconf
automake --add-missing -Wno-portability