gitignore: add up2date items

And fix related script.

Version: 9.6.1-1
This commit is contained in:
Pavel Raiskup 2016-10-26 09:54:31 +02:00
parent b0108e4725
commit 06a51ffa8a
2 changed files with 10 additions and 7 deletions

10
.gitignore vendored
View File

@ -1,6 +1,6 @@
/postgresql-9.5.5.tar.bz2
/postgresql-9.5.5.tar.bz2.sha256
/postgresql-9.6.1.tar.bz2
/postgresql-9.6.1.tar.bz2.sha256
/postgresql-setup-5.0.tar.gz /postgresql-setup-5.0.tar.gz
/postgresql-9.5.4.tar.bz2 /postgresql-9.6.1-US.pdf
/postgresql-9.5.4.tar.bz2.sha256
/postgresql-9.6.0-US.pdf
/postgresql-9.6.0.tar.bz2
/postgresql-9.6.0.tar.bz2.sha256

View File

@ -1,10 +1,13 @@
#! /bin/sh -x #! /bin/sh
rm sources .gitignore
set -e set -e
spectool -S *.spec | cut -d' ' -f2 \ spectool -S *.spec | cut -d' ' -f2 \
| grep -E -e 'postgresql-.*\.tar\.*' -e 'postgresql.*\.pdf' | sort | \ | grep -E -e 'postgresql-.*\.tar\.*' -e 'postgresql.*\.pdf' | sort | \
while read line while read line
do do
base=`basename "$line"` base=`basename "$line"`
md5sum "$base" echo " * handling $base"
md5sum "$base" >> sources
echo "/$base" >> .gitignore
done done