builtin-certs-update at [8c99b5e102]

File build/builtin-certs-update artifact 9fea13231c part of check-in 8c99b5e102


#! /bin/bash

set -e

ourdir="$(dirname "$(which "$0")")"
cd "${outdir}" || exit 1

make -C certs/dod distclean all
make -C certs/federal distclean all

if [ "$1" = '--commercial' ]; then
	commercial='commercial'
else
	commercial='SKIP'
fi

./certs-to-c certs/{dod,federal,$commercial}/*.crt > ../cackey_builtin_certs.h