| 1 |
#!/bin/csh |
| 2 |
# |
| 3 |
# Intent: This script creates the layout for the PACS demonstration |
| 4 |
# $Revision: 1.1 $ |
| 5 |
|
| 6 |
echo This script is used to create a layout for the PACS demonstration |
| 7 |
echo with MIR software. This is not necessarily the final layout, but it |
| 8 |
echo will serve for testing purposes. This script is picky about input |
| 9 |
echo so please type carefully \(avoid extra spaces when you type\). |
| 10 |
echo "" |
| 11 |
|
| 12 |
set ROOT = /mir_ctn |
| 13 |
echo The default root directory for the MIR CTN data files is $ROOT. |
| 14 |
echo You can choose a different directory at this point by entering |
| 15 |
echo the directory name. If you wish to use the default, just hit RETURN. |
| 16 |
echo "" |
| 17 |
set a = $< |
| 18 |
if ($a != "") then |
| 19 |
echo Do you wish to use $a as the root directory "(y/n)?" |
| 20 |
set b = $< |
| 21 |
if (($b != "y") && ($b != "Y")) then |
| 22 |
echo Script exiting. Please try again. |
| 23 |
exit |
| 24 |
endif |
| 25 |
set ROOT = $a |
| 26 |
endif |
| 27 |
|
| 28 |
if (! (-e $ROOT)) then |
| 29 |
echo This script requires the directory $ROOT to exist before running. |
| 30 |
echo Please create this directory and then run this script again. |
| 31 |
exit |
| 32 |
endif |
| 33 |
|
| 34 |
umask 0 |
| 35 |
# Create several subdirectories for the PACS demonstration |
| 36 |
|
| 37 |
echo Making the PACS subdirectories starting from $ROOT |
| 38 |
|
| 39 |
if (! (-e $ROOT/pacs)) then |
| 40 |
mkdir $ROOT/pacs |
| 41 |
endif |
| 42 |
if (! (-e $ROOT/pacs/config)) then |
| 43 |
mkdir $ROOT/pacs/config |
| 44 |
endif |
| 45 |
if (! (-e $ROOT/pacs/q)) then |
| 46 |
mkdir $ROOT/pacs/q |
| 47 |
endif |
| 48 |
|
| 49 |
echo PACS directory layout complete. Before you run the PACS demonstration, |
| 50 |
echo you will need to create configuration files "(config/pacs_connect.cfg" |
| 51 |
echo and "config/pacs_database.cfg)". Examples should be supplied with the |
| 52 |
echo CTN software "(look in pacs_demo)." |