#8138: make-ca.sh seems to be broken ?
--------------------+--------------------------
Reporter: ken@… | Owner: blfs-book@…
Type: defect | Status: closed
Priority: normal | Milestone: 7.10
Component: BOOK | Version: SVN
Severity: normal | Resolution: invalid
Keywords: |
--------------------+--------------------------
Comment (by bdubbs@…):
This script is run nightly:
{{{
#! /bin/bash
cd /tmp
CERTHOST='https://hg.mozilla.org'
CERTDIR='releases/mozilla-
release/file/default/security/nss/lib/ckfw/builtins'
TEXTFILE=/srv/www/BLFS/certdata.txt
HTMLFILE=certdata.html
rm -fv certdata.*
wget $CERTHOST/$CERTDIR/certdata.txt --output-document=$HTMLFILE
MYDATE=$(grep date $HTMLFILE | head -n1 | cut -d" " -f5-7)
VERSION=$(date --date="$MYDATE" +%Y%m%d)
if [ -e $TEXTFILE ]; then
OLDVERSION=$(grep CVS_ID $TEXTFILE | cut -f4 -d'$' | cut -f2 -d" ")
else
OLDVERSION=none
fi
echo "Latest version=$VERSION"
echo "Current version=$OLDVERSION"
if [ "x$VERSION" != "x$OLDVERSION" ]; then
CERTTEXT=$(grep raw-file $HTMLFILE | sed -r 's/.*="(.*)".*/\1/' )
echo $CERTTEXT
wget $CERTHOST/$CERTTEXT
#ls -l
echo "#CVS_ID @# \$ RCSfile: certdata.txt \$ \$Revision: $VERSION \$
\$Date: \$" > $TEXTFILE
cat certdata.txt >> $TEXTFILE
fi
}}}
--
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/8138#comment:4>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
--
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page