]> git.saurik.com Git - apple/security.git/blame - SecurityTests/cspxutils/buildExample
Security-57031.1.35.tar.gz
[apple/security.git] / SecurityTests / cspxutils / buildExample
CommitLineData
d8f41ccd
A
1#! /bin/csh -f
2#
3# Build a standalone CDSA example package consisting of rsaTool,
4# dhTest, cryptTool, and the library upon which they depend.
5#
6set packageName=CDSA_Examples
7set targetDirs=( rsatool dhTest cryptTool utilLib )
8set targetFiles=( Makefile Makefile.lib Makefile.cdsa )
9set readmeSrc=EXAMPLES_README
10set readmeDst=README
11
12if ( $#argv != 1 ) then
13 echo target_dir/$packageName must not exist
14 exit(1)
15endif
16
17# packageDir is root
18set packageDir=$argv[1]/$packageName
19if (-e $packageDir) then
20 echo target_dir/$packageName must not exist
21 exit(1)
22endif
23
24echo Creating destination directory...
25mkdir -p $packageDir || exit(1)
26echo Copying source files...
27cp -pr $targetDirs $targetFiles $packageDir || exit(1)
28echo Installing README...
29cp -p $readmeSrc $packageDir/$readmeDst
30echo Cleaning destination directories...
31cd $packageDir; make clean
32echo Done.