summaryrefslogtreecommitdiff
blob: c7b3ad373225158e0b12fd0b2235fd676e369f8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash -e

dir=${0%/*}
cd ${dir}/..

rm -f scripts/package.keywords.*.tmp
for f in scripts/package.keywords.* ; do
	cmd=$(grep '^# find ' ${f} | sed 's:^# ::')
	echo "Regenerating ${f}"
	echo "  -> ${cmd}"
	egrep '^(#|$)' ${f} > ${f}.tmp
	eval "${cmd}" >> ${f}.tmp
	mv ${f}.tmp ${f}
done