From bda7d16961a3f1e54ca707dafdeb21da3ec273a0 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 05 May 2018 23:41:52 -0400 Subject: gnuzilla/build: Add headers and fix paths in uscan command --- diff --git a/gnuzilla/build b/gnuzilla/build index 372b339..a81d85a 100755 --- a/gnuzilla/build +++ b/gnuzilla/build @@ -5,6 +5,17 @@ set -eu MKBUILDDEPS_TOOL='/usr/bin/apt-get -o Debug::pkgProblemResolver=yes' MKBUILDDEPS_TOOL="${MKBUILDDEPS_TOOL} --no-install-recommends -y" +header() +{ + local fmt="${1}" + shift 1 + + printf "\n${fmt}\n" "${@}" + printf "${fmt}\n\n" "${@}" | tr -C '\n' '-' + + return 0 +} + # Get the newest version. sed_s='s/uscan: Newest version of icecat on remote site is \([^,][^,]*\),' sed_s="${sed_s}"' local version is 0$/\1/p;' @@ -12,9 +23,19 @@ version="$(uscan --package 'icecat' --upstream-version '0' \ --watchfile "${0%/*}/watch" 2>&1 | sed -n "${sed_s}")" upstream_version="${version%-*}" +printf '%-47s %31s\n' "icecat (${version})" \ + "$(LC_ALL='POSIX' date '+%a, %d %b %Y %H:%M:%S %z')" +cat <