~j-harbott/cirros/dev

« back to all changes in this revision

Viewing changes to bin/mkcabundle

  • Committer: Scott Moser
  • Date: 2016-07-21 17:07:39 UTC
  • Revision ID: smoser@ubuntu.com-20160721170739-meuz5etv6qhecivf
bin/mkcabundle: replace cvs with wget to github of mozilla git

mozilla no longer uses cvs.  upstream git is on github.
We can just download the file with wget and still use mkcabundle.
TODO is to replace mkcabundle with shell that does same thing,
and updates the header correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
# Run as ./mkcabundle.pl > ca-bundle.crt
5
5
#
6
6
 
7
 
my $cvsroot = ':pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot';
8
 
my $certdata = 'mozilla/security/nss/lib/ckfw/builtins/certdata.txt';
 
7
#my $cvsroot = ':pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot';
 
8
#my $certdata = 'mozilla/security/nss/lib/ckfw/builtins/certdata.txt';
9
9
 
10
 
open(IN, "cvs -d $cvsroot co -p $certdata|")
11
 
    || die "could not check out certdata.txt";
 
10
#open(IN, "cvs -d $cvsroot co -p $certdata|")
 
11
    #|| die "could not check out certdata.txt";
12
12
 
13
13
my $incert = 0;
14
14
 
20
20
#
21
21
EOH
22
22
 
23
 
while (<IN>) {
 
23
while (<>) {
24
24
    if (/^CKA_VALUE MULTILINE_OCTAL/) {
25
25
        $incert = 1;
26
26
        open(OUT, "|openssl x509 -text -inform DER -fingerprint")