1 |
#!/bin/sh |
#!/bin/sh |
2 |
|
|
3 |
for file in *.rpm |
UNSIGNED=$(rpm -K $@ | grep 'md5 OK' | sed -e 's/:.*//') |
4 |
|
|
5 |
|
if [ -n "$UNSIGNED" ] |
6 |
|
then |
7 |
|
echo "The following RPMs are not signed:" |
8 |
|
echo $UNSIGNED |
9 |
|
echo "Please sign them now" |
10 |
|
|
11 |
|
rpm --addsign $UNSIGNED || exit 1 |
12 |
|
fi |
13 |
|
|
14 |
|
for file in $@ |
15 |
do |
do |
16 |
arch=$(basename $file .rpm | sed -e 's/.*\.//') |
arch=$(basename $file .rpm | sed -e 's/.*\.//') |
17 |
|
|
30 |
|
|
31 |
# XXX - FIXME - Force signing of RPMs before release |
# XXX - FIXME - Force signing of RPMs before release |
32 |
rpm -K $file |
rpm -K $file |
33 |
cp $file TARGET |
cp -a $file $TARGET/$(basename $file) |
34 |
fi |
fi |
35 |
done |
done |