1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-15 13:05:22 +02:00

[releng] Avoid re-signing Orbit bundles

This commit is contained in:
Martin Oberhuber 2008-11-11 17:53:34 +00:00
parent 6454ac6b32
commit 31cecc9afe

View file

@ -105,8 +105,12 @@ elif [ ${TYPE} = testSigned ]; then
cp -R ${SITE}/../testUpdates/features/*.jar ${STAGING}/updates.${stamp}/features cp -R ${SITE}/../testUpdates/features/*.jar ${STAGING}/updates.${stamp}/features
cd ${STAGING}/updates.${stamp}/features cd ${STAGING}/updates.${stamp}/features
for x in `ls *.jar`; do for x in `ls *.jar`; do
result=`jarsigner -verify ${x} | head -1`
if [ "$result" != "jar verified." ]; then
# do not sign Orbit bundles again since they are signed already
echo "signing feature: ${x}" echo "signing feature: ${x}"
sign ${x} nomail >/dev/null sign ${x} nomail >/dev/null
fi
done done
TRIES=10 TRIES=10
while [ $TRIES -gt 0 ]; do while [ $TRIES -gt 0 ]; do
@ -140,8 +144,12 @@ elif [ ${TYPE} = testSigned ]; then
cp ${SITE}/../testUpdates/plugins/*.jar ${STAGING}/updates.${stamp}/plugins cp ${SITE}/../testUpdates/plugins/*.jar ${STAGING}/updates.${stamp}/plugins
cd ${STAGING}/updates.${stamp}/plugins cd ${STAGING}/updates.${stamp}/plugins
for x in `ls *.jar`; do for x in `ls *.jar`; do
result=`jarsigner -verify ${x} | head -1`
if [ "$result" != "jar verified." ]; then
# do not sign Orbit bundles again since they are signed already
echo "signing plugin: ${x}" echo "signing plugin: ${x}"
sign ${x} nomail >/dev/null sign ${x} nomail >/dev/null
fi
done done
TRIES=10 TRIES=10
while [ $TRIES -gt 0 ]; do while [ $TRIES -gt 0 ]; do