diff --git a/Makefile b/Makefile index 50aa920..41401f9 100644 --- a/Makefile +++ b/Makefile @@ -24,11 +24,12 @@ # SUCH DAMAGE. STEPS= arm base boot chroot clean compress confirm core distfiles \ - download dvd info kernel nano plugins ports prefetch print \ - rebase release rename rewind serial sign skim test update \ - upload verify vga vm xtools + download dvd fingerprint info kernel nano plugins ports \ + prefetch print rebase release rename rewind serial sign \ + skim test update upload verify vga vm xtools SCRIPTS= batch hotfix nightly -.PHONY: ${STEPS} + +.PHONY: ${STEPS} ${SCRIPTS} PAGER?= less diff --git a/README.md b/README.md index 705ac82..d10d44e 100644 --- a/README.md +++ b/README.md @@ -370,6 +370,11 @@ out on the system can be printed using: # make info +Repositories that have signing keys can show the current +fingerprint using: + + # make fingerprint + Last but not least, in case build variables needs to be inspected, they can be printed selectively using: diff --git a/build/common.sh b/build/common.sh index 8348839..c10e49c 100644 --- a/build/common.sh +++ b/build/common.sh @@ -256,7 +256,7 @@ export PRODUCT_PLUGIN="os-*${PRODUCT_SUFFIX}" case "${SELF}" in -confirm|info|print) +confirm|fingerprint|info|print) ;; *) if [ -z "${PRINT_ENV_SKIP}" ]; then diff --git a/build/fingerprint.sh b/build/fingerprint.sh new file mode 100644 index 0000000..c4d4227 --- /dev/null +++ b/build/fingerprint.sh @@ -0,0 +1,34 @@ +#!/bin/sh + +# Copyright (c) 2019 Franco Fichtner +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. + +set -e + +SELF=fingerprint + +. ./common.sh + +${PRODUCT_SIGNCHK}