]>
Commit | Line | Data |
---|---|---|
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 | # | |
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 | |
10 | set readmeDst=README | |
11 | ||
12 | if ( $#argv != 1 ) then | |
13 | echo target_dir/$packageName must not exist | |
14 | exit(1) | |
15 | endif | |
16 | ||
17 | # packageDir is root | |
18 | set packageDir=$argv[1]/$packageName | |
19 | if (-e $packageDir) then | |
20 | echo target_dir/$packageName must not exist | |
21 | exit(1) | |
22 | endif | |
23 | ||
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 | |
32 | echo Done. |