Debian Codegraph @

apps/scripts/his_layout

raw
1 #!/bin/csh
2 #
3 # Intent: This script creates the layout for the HIS demonstration
4 # $Revision: 1.1 $
5
6 echo This script is used to create a layout for the HIS 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 HIS demonstration
36
37 echo Making the HIS subdirectories starting from $ROOT
38
39 if (! (-e $ROOT/his)) then
40 mkdir $ROOT/his
41 endif
42 if (! (-e $ROOT/his/config)) then
43 mkdir $ROOT/his/config
44 endif
45 if (! (-e $ROOT/his/db)) then
46 mkdir $ROOT/his/db
47 endif
48 if (! (-e $ROOT/his/q)) then
49 mkdir $ROOT/his/q
50 endif
51
52 echo HIS directory layout complete. Before you run the HIS demonstration,
53 echo you will need to create a database file to be used by your company
54 echo "(ROOT/his/db/vendor.db)" in the db directory and uid and id files for
55 echo your company in the config directory. You will also need to create
56 echo configuration files, his_connect.cfg and his_database.cfg in the config
57 echo directory. There should be examples of these files supplied with
58 echo the CTN software "(look in his_demo)."