2012-05-24 07:14:28 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2012-05-29 01:10:44 +00:00
|
|
|
ccan_modules="talloc read_write_all"
|
2012-05-24 07:14:28 +00:00
|
|
|
|
|
|
|
# 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
|