postgresql/generate-sources-and-gitignore.sh
Honza Horak b56a8848c7 Replace whole repo with latest content from branch stream-12-rhel-8.8.0
Content corresponds with RHEL dist-git commit cc65109
2023-05-15 21:41:07 +02:00

14 lines
305 B
Bash
Executable File

#! /bin/sh
rm sources .gitignore
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
echo "/$base" >> .gitignore
done