postgresql/generate-sources.sh
Troy Dawson e0a44f86db 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/postgresql#33d08c0c72907ccc60e0e252fc0596181f91f34f
2020-10-14 16:28:02 -07: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