postgresql/generate-sources-and-gitignore.sh
Pavel Raiskup 06a51ffa8a gitignore: add up2date items
And fix related script.

Version: 9.6.1-1
2016-10-26 11:41:00 +02:00

14 lines
296 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"
md5sum "$base" >> sources
echo "/$base" >> .gitignore
done