sbsigntools/autogen.sh
Steve Langasek be1f3d8350 Update the PE checksum field using the somewhat-underdocumented
algorithm, so that we match the Microsoft implementation in our
signature generation.

[jejb: add endian to autogen.sh and fix for multi-sign]
Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2016-01-27 11:38:00 -08:00

33 lines
655 B
Bash
Executable file

#!/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