From 453cc058d9ee6d7cb47529d99061216e72149a5f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 9 May 2021 06:21:55 +0200 Subject: Adding bin. Signed-off-by: Daniel Baumann --- bin/reprepro_check-buildinfo.sh | 49 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100755 bin/reprepro_check-buildinfo.sh (limited to 'bin/reprepro_check-buildinfo.sh') diff --git a/bin/reprepro_check-buildinfo.sh b/bin/reprepro_check-buildinfo.sh new file mode 100755 index 0000000..14b8223 --- /dev/null +++ b/bin/reprepro_check-buildinfo.sh @@ -0,0 +1,49 @@ +#!/bin/sh + +set -e + +echo -n "Checking " + +for BUILDINFO in */*/*.buildinfo +do + if grep 'TERM=' "${BUILDINFO}" + then + echo + echo "${BUILDINFO}: fix TERM=" + fi + + if ! grep '^Build-Date: .* +0000$' "${BUILDINFO}" + then + echo + echo "${BUILDINFO}: fix Build-Date" + fi + + if ! grep -qs "^Build-Path: .*progress[0-9]u[0-9]$" "${BUILDINFO}" && \ + ! grep -qs "^Build-Path: .*progress[0-9]+u[0-9]$" "${BUILDINFO}" + then + echo + echo "${BUILDINFO}: fix Build-Path" + fi + + if grep -qs '^ DEB_BUILD_OPTIONS=' "${BUILDINFO}" + then + echo + echo "${BUILDINFO}: fix DEB_BUILD_OPTIONS" + fi + + if ! grep -qs '^ LANG="C.UTF-8"' "${BUILDINFO}" + then + echo + echo "${BUILDINFO}: missing LANG" + fi + + if ! grep -qs '^ LC_ALL="C.UTF-8"' "${BUILDINFO}" + then + echo + echo "${BUILDINFO}: missing LC_ALL" + fi + + echo -n "." +done + +echo " done." -- cgit v1.2.3