]> git.saurik.com Git - apple/security.git/blob - keychains/certscript
Security-163.tar.gz
[apple/security.git] / keychains / certscript
1 #! /bin/csh -f
2 #
3 # Build a keychain out of roots or certs.
4 #
5 set prog=$0
6 if ( $#argv != 2 ) then
7 echo usage: ${prog:t} dbfile certsdir
8 echo dbfile must NOT exist.
9 exit(1)
10 endif
11 #
12 # Our job is to cook up a list of files in certsdir, not including
13 # the CVS directory.
14 #
15 set cwd=`pwd`
16 set dbfile=$cwd/$argv[1]
17 set certsdir=$argv[2]
18 if ( -e $dbfile ) then
19 echo I insist that you delete $argv[1] manually.
20 exit(1)
21 endif
22 #
23 set cmd="./makecerts $dbfile $certsdir/[a-zABD-Z0-9]* $certsdir/C[a-zA-UW-Z0-9]*"
24 $cmd || exit(1)