libpq/generate-sources.sh
Petr Šabata 7a3a4faa1d RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/libpq#15eca5b3ef3612435e030c675597ce8705d11ff8
2020-10-15 16:59:10 +02:00

13 lines
262 B
Bash
Executable File

#! /bin/sh
rm sources
set -e
spectool -S *.spec | cut -d' ' -f2 \
| grep -E -e 'postgresql-.*\.tar\.*' -e 'postgresql.*\.pdf' | sort | \
while read line
do
base=`basename "$line"`
echo " * handling $base"
sha512sum --tag "$base" >> sources
done