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"
|
|
|
|
md5sum "$base" >> sources
|
|
|
|
echo "/$base" >> .gitignore
|
2016-10-26 06:26:15 +00:00
|
|
|
done
|