2016-10-26 07:54:31 +00:00
|
|
|
#! /bin/sh
|
2016-10-26 06:26:15 +00:00
|
|
|
|
2016-10-26 07:54:31 +00:00
|
|
|
rm sources .gitignore
|
2016-10-26 06:26:15 +00:00
|
|
|
set -e
|
|
|
|
spectool -S *.spec | cut -d' ' -f2 \
|
|
|
|
| grep -E -e 'postgresql-.*\.tar\.*' -e 'postgresql.*\.pdf' | sort | \
|
|
|
|
while read line
|
|
|
|
do
|
|
|
|
base=`basename "$line"`
|
2016-10-26 07:54:31 +00:00
|
|
|
echo " * handling $base"
|
2017-05-11 10:34:04 +00:00
|
|
|
sha512sum --tag "$base" >> sources
|
2016-10-26 07:54:31 +00:00
|
|
|
echo "/$base" >> .gitignore
|
2016-10-26 06:26:15 +00:00
|
|
|
done
|