~kaction/config

454b52e97b7bffbd95a34b1d75922a4bbb37b724 — Dmitry Bogatov 3 years ago cae7bd4
Setup scripts to update volatile data
3 files changed, 14 insertions(+), 17 deletions(-)

D aux/fetch
A volatile/GNUmakefile
R aux/salsa-accessible => volatile/update/salsa.list
D aux/fetch => aux/fetch +0 -16
@@ 1,16 0,0 @@
#!/bin/sh -eu
url="$1"
filename="$2"
want="${3}"

wget "$url" -qO "$filename"

real=$(sha1sum < "${filename}" | cut -f1 -d' ')

case "${real}" in
    (${want}*) ;;
    (*)
        printf >&2 'Hashsum mismatch: %s, not %s...' "${real}" "${want}"
        exit 1
        ;;
esac

A volatile/GNUmakefile => volatile/GNUmakefile +10 -0
@@ 0,0 1,10 @@
all:
	# Use '$(MAKE) <file>' to perform network-related operations
	# required to acquire latest version of <file>.

salsa.list:
	update/$@ > $@
gitolite.conf:
	curl -so $@ https://cgit.iu-guest.info/gitolite-admin.git/plain/conf/gitolite.conf

.PHONY: all salsa.list gitolite.conf

R aux/salsa-accessible => volatile/update/salsa.list +4 -1
@@ 19,4 19,7 @@ for user in iu-guest ; do
done

set -- "$@" debian/bcron debian/slgdbm
echo "set -- $*"
eval set -- "$@" # remove extra pair of quotes
export IFS='
'
echo "$*" | sort