mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-30 19:53:30 +02:00
[releng] Improve handling of rseserver-*-signed input file
This commit is contained in:
parent
250119f1db
commit
edc9dd3c24
1 changed files with 12 additions and 1 deletions
|
@ -6,16 +6,26 @@ mydir=`pwd`
|
||||||
cd "${curdir}"
|
cd "${curdir}"
|
||||||
|
|
||||||
SIGNED_JAR_SOURCE=${mydir}/eclipse_ext/tm
|
SIGNED_JAR_SOURCE=${mydir}/eclipse_ext/tm
|
||||||
|
##SIGNED_JAR_SOURCE=${mydir}/eclipse_ext
|
||||||
OUTPUT=${curdir}/output.$$
|
OUTPUT=${curdir}/output.$$
|
||||||
RESULT=${curdir}/result.$$
|
RESULT=${curdir}/result.$$
|
||||||
TMP=${curdir}/tmp.$$
|
TMP=${curdir}/tmp.$$
|
||||||
|
|
||||||
if [ ! -d ${SIGNED_JAR_SOURCE}/server ]; then
|
if [ ! -d ${SIGNED_JAR_SOURCE}/server ]; then
|
||||||
mkdir ${SIGNED_JAR_SOURCE}/server
|
mkdir ${SIGNED_JAR_SOURCE}/server
|
||||||
|
fi
|
||||||
|
have_server=`ls "${SIGNED_JAR_SOURCE}"/server/*.jar 2>/dev/null`
|
||||||
|
if [ "${have_server}" = "" ]; then
|
||||||
cd ${SIGNED_JAR_SOURCE}/server
|
cd ${SIGNED_JAR_SOURCE}/server
|
||||||
unzip ${curdir}/rseserver-*-signed.zip
|
unzip ${curdir}/rseserver-*-signed.zip
|
||||||
|
have_server=`ls *.jar 2>/dev/null`
|
||||||
|
cd "${curdir}"
|
||||||
|
if [ "${have_server}" = "" ]; then
|
||||||
|
echo 'ERROR: signed rseserver-*-signed.zip not found!'
|
||||||
|
echo "Please sign a server zip on build.eclipse.org, upload and retry."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
cd "${curdir}"
|
|
||||||
|
|
||||||
if [ ! -d ${TMP} ]; then
|
if [ ! -d ${TMP} ]; then
|
||||||
mkdir -p ${TMP}
|
mkdir -p ${TMP}
|
||||||
|
@ -58,6 +68,7 @@ for zip in `ls *.zip *.tar` ; do
|
||||||
*.tar) tar cfv ${OUTPUT}/${zip} * ; touch -r ${REF} ${OUTPUT}/${zip};
|
*.tar) tar cfv ${OUTPUT}/${zip} * ; touch -r ${REF} ${OUTPUT}/${zip};
|
||||||
esac
|
esac
|
||||||
rm -rf *
|
rm -rf *
|
||||||
|
rm "${OUTPUT}"/rseserver-*-signed.zip
|
||||||
cd ${RESULT}
|
cd ${RESULT}
|
||||||
case ${zip} in
|
case ${zip} in
|
||||||
rseserver*) mkdir ${zip} ; cd ${zip} ;
|
rseserver*) mkdir ${zip} ; cd ${zip} ;
|
||||||
|
|
Loading…
Add table
Reference in a new issue