File: his_layout

package info (click to toggle)
ctn 3.2.0~dfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 16,924 kB
  • sloc: ansic: 179,652; makefile: 7,006; java: 1,863; csh: 1,067; yacc: 523; sh: 424; cpp: 394; sql: 389; lex: 170
file content (58 lines) | stat: -rw-r--r-- 1,845 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/csh
#
# Intent:	This script creates the layout for the HIS demonstration
# $Revision: 1.1 $

echo This script is used to create a layout for the HIS demonstration
echo with MIR software.  This is not necessarily the final layout, but it
echo will serve for testing purposes.  This script is picky about input
echo so please type carefully \(avoid extra spaces when you type\).
echo ""

set ROOT = /mir_ctn
echo The default root directory for the MIR CTN data files is $ROOT.
echo You can choose a different directory at this point by entering
echo the directory name.  If you wish to use the default, just hit RETURN.
echo ""
set a = $<
if ($a != "") then
echo Do you wish to use $a as the root directory "(y/n)?"
set b = $<
if (($b != "y") && ($b != "Y")) then
echo Script exiting.  Please try again.
exit
endif
set ROOT = $a
endif

if (! (-e $ROOT)) then
echo This script requires the directory $ROOT to exist before running.
echo Please create this directory and then run this script again.
exit
endif

umask 0
# Create several subdirectories for the HIS demonstration

echo Making the HIS subdirectories starting from $ROOT

if (! (-e $ROOT/his)) then
mkdir $ROOT/his
endif
if (! (-e $ROOT/his/config)) then
mkdir $ROOT/his/config
endif
if (! (-e $ROOT/his/db)) then
mkdir $ROOT/his/db
endif
if (! (-e $ROOT/his/q)) then
mkdir $ROOT/his/q
endif

echo HIS directory layout complete.  Before you run the HIS demonstration,
echo you will need to create a database file to be used by your company
echo "(ROOT/his/db/vendor.db)" in the db directory and uid and id files for
echo your company in the config directory.  You will also need to create
echo configuration files, his_connect.cfg and his_database.cfg in the config
echo directory.  There should be examples of these files supplied with
echo the CTN software "(look in his_demo)."