postgresql/generate-sources-and-gitignore.sh

14 lines
296 B
Bash
Raw Normal View History

#! /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