3 # Build a standalone CDSA example package consisting of rsaTool,
4 # dhTest, cryptTool, and the library upon which they depend.
6 set packageName
=CDSA_Examples
7 set targetDirs
=( rsatool dhTest cryptTool utilLib
)
8 set targetFiles
=( Makefile Makefile.lib Makefile.cdsa
)
9 set readmeSrc
=EXAMPLES_README
12 if ( $#argv != 1 ) then
13 echo target_dir
/$packageName must not exist
18 set packageDir
=$argv[1]/$packageName
19 if (-e $packageDir) then
20 echo target_dir
/$packageName must not exist
24 echo Creating destination directory...
25 mkdir -p $packageDir || exit(1)
26 echo Copying
source files...
27 cp -pr $targetDirs $targetFiles $packageDir || exit(1)
28 echo Installing README...
29 cp -p $readmeSrc $packageDir/$readmeDst
30 echo Cleaning destination directories...
31 cd $packageDir; make clean