18
18
# The Initial Developer of the Original Code is
19
19
# Netscape Communications Corporation.
20
# Portions created by the Initial Developer are Copyright (C) 1994-2000
20
# Portions created by the Initial Developer are Copyright (C) 1994-2009
21
21
# the Initial Developer. All Rights Reserved.
122
122
TOOLSDIR=${HOSTDIR}/tools
123
123
COPYDIR=${TOOLSDIR}/copydir
124
SIGNDIR=${TOOLSDIR}/signdir
125
126
R_TOOLSDIR=../tools
126
127
R_COPYDIR=../tools/copydir
128
R_SIGNDIR=../tools/signdir
127
129
P_R_COPYDIR=${R_COPYDIR}
130
P_R_SIGNDIR=${R_SIGNDIR}
128
131
if [ -n "${MULTIACCESS_DBM}" ]; then
129
132
P_R_COPYDIR="multiaccess:Tools.$version"
133
P_R_SIGNDIR="multiaccess:Tools.sign.$version"
132
136
mkdir -p ${TOOLSDIR}
133
137
mkdir -p ${COPYDIR}
139
cp ${ALICEDIR}/* ${SIGNDIR}/
134
140
mkdir -p ${TOOLSDIR}/html
135
141
cp ${QADIR}/tools/sign*.html ${TOOLSDIR}/html
457
463
echo "$SCRIPTNAME: Create objsign cert -------------------------------"
458
echo "signtool -G \"objectsigner\" -d ${P_R_ALICEDIR} -p \"nss\""
459
${BINDIR}/signtool -G "objsigner" -d ${P_R_ALICEDIR} -p "nss" 2>&1 <<SIGNSCRIPT
464
echo "signtool -G \"objectsigner\" -d ${P_R_SIGNDIR} -p \"nss\""
465
${BINDIR}/signtool -G "objsigner" -d ${P_R_SIGNDIR} -p "nss" 2>&1 <<SIGNSCRIPT
469
475
html_msg $? 0 "Create objsign cert (signtool -G)"
471
477
echo "$SCRIPTNAME: Signing a jar of files ----------------------------"
472
echo "signtool -Z nojs.jar -d ${P_R_ALICEDIR} -p \"nss\" -k objsigner \\"
478
echo "signtool -Z nojs.jar -d ${P_R_SIGNDIR} -p \"nss\" -k objsigner \\"
473
479
echo " ${R_TOOLSDIR}/html"
474
${BINDIR}/signtool -Z nojs.jar -d ${P_R_ALICEDIR} -p "nss" -k objsigner \
480
${BINDIR}/signtool -Z nojs.jar -d ${P_R_SIGNDIR} -p "nss" -k objsigner \
475
481
${R_TOOLSDIR}/html
476
482
html_msg $? 0 "Signing a jar of files (signtool -Z)"
478
484
echo "$SCRIPTNAME: Listing signed files in jar ----------------------"
479
echo "signtool -v nojs.jar -d ${P_R_ALICEDIR} -p nss -k objsigner"
480
${BINDIR}/signtool -v nojs.jar -d ${P_R_ALICEDIR} -p nss -k objsigner
485
echo "signtool -v nojs.jar -d ${P_R_SIGNDIR} -p nss -k objsigner"
486
${BINDIR}/signtool -v nojs.jar -d ${P_R_SIGNDIR} -p nss -k objsigner
481
487
html_msg $? 0 "Listing signed files in jar (signtool -v)"
483
489
echo "$SCRIPTNAME: Show who signed jar ------------------------------"
484
echo "signtool -w nojs.jar -d ${P_R_ALICEDIR}"
485
${BINDIR}/signtool -w nojs.jar -d ${P_R_ALICEDIR}
490
echo "signtool -w nojs.jar -d ${P_R_SIGNDIR}"
491
${BINDIR}/signtool -w nojs.jar -d ${P_R_SIGNDIR}
486
492
html_msg $? 0 "Show who signed jar (signtool -w)"
488
494
echo "$SCRIPTNAME: Signing a xpi of files ----------------------------"
489
echo "signtool -Z nojs.xpi -X -d ${P_R_ALICEDIR} -p \"nss\" -k objsigner \\"
495
echo "signtool -Z nojs.xpi -X -d ${P_R_SIGNDIR} -p \"nss\" -k objsigner \\"
490
496
echo " ${R_TOOLSDIR}/html"
491
${BINDIR}/signtool -Z nojs.xpi -X -d ${P_R_ALICEDIR} -p "nss" -k objsigner \
497
${BINDIR}/signtool -Z nojs.xpi -X -d ${P_R_SIGNDIR} -p "nss" -k objsigner \
492
498
${R_TOOLSDIR}/html
493
499
html_msg $? 0 "Signing a xpi of files (signtool -Z -X)"
495
501
echo "$SCRIPTNAME: Listing signed files in xpi ----------------------"
496
echo "signtool -v nojs.xpi -d ${P_R_ALICEDIR} -p nss -k objsigner"
497
${BINDIR}/signtool -v nojs.xpi -d ${P_R_ALICEDIR} -p nss -k objsigner
502
echo "signtool -v nojs.xpi -d ${P_R_SIGNDIR} -p nss -k objsigner"
503
${BINDIR}/signtool -v nojs.xpi -d ${P_R_SIGNDIR} -p nss -k objsigner
498
504
html_msg $? 0 "Listing signed files in xpi (signtool -v)"
500
506
echo "$SCRIPTNAME: Show who signed xpi ------------------------------"
501
echo "signtool -w nojs.xpi -d ${P_R_ALICEDIR}"
502
${BINDIR}/signtool -w nojs.xpi -d ${P_R_ALICEDIR}
507
echo "signtool -w nojs.xpi -d ${P_R_SIGNDIR}"
508
${BINDIR}/signtool -w nojs.xpi -d ${P_R_SIGNDIR}
503
509
html_msg $? 0 "Show who signed xpi (signtool -w)"