Debian Codegraph @

apps/scripts/print_layout

raw
1 #!/bin/csh
2 #
3 # Intent: This script creates the layout for the print demonstration
4 # $Revision: 1.5 $
5
6 echo This script is used to create a layout for the print 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 = /dicomctnc
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 print demonstration
36
37 echo Making the print subdirectories starting from $ROOT
38
39 if (! (-e $ROOT/print)) then
40 mkdir $ROOT/print
41 endif
42 if (! (-e $ROOT/print/config)) then
43 mkdir $ROOT/print/config
44 endif
45 if (! (-e $ROOT/print/db)) then
46 mkdir $ROOT/print/db
47 endif
48 if (! (-e $ROOT/print/images)) then
49 mkdir $ROOT/print/images
50 endif
51
52 # When MONOCHROME1 is handled by the print routines, add the following :
53 # fuji kodak
54 foreach i (acuson \
55 algotec \
56 atl \
57 ge \
58 philips \
59 picker \
60 siemens \
61 toshiba)
62 if (! (-e $ROOT/print/images/$i)) then
63 echo Making $ROOT/print/images/$i
64 mkdir $ROOT/print/images/$i
65 endif
66 end
67
68 # When MONOCHROME1 is handled by the print routines, add the following :
69 # fuji/FUJI95701 \
70 # fuji/FUJI95706 \
71 # fuji/FUJI95707 \
72 # fuji/FUJI95714 \
73 # kodak/KHIS073006030 \
74 # kodak/KHIS073013420 \
75 # kodak/KHIS080105590 \
76 # kodak/KHIS080107130 \
77
78 foreach i (acuson/ACN000001 \
79 acuson/ACN000004 \
80 acuson/ACN000104 \
81 algotec/ALGO00000 \
82 algotec/ALGO00002 \
83 atl/ATL000001 \
84 atl/ATL000007 \
85 atl/ATL000013 \
86 atl/ATL000015 \
87 ge/1.2.840.113674.1115.261.200 \
88 ge/1.2.840.113674.1118.54.200 \
89 ge/1.2.840.113674.1140.196.200 \
90 ge/1.2.840.113674.1242.214.200 \
91 ge/1.2.840.113674.1335.106.200 \
92 ge/THU9948 \
93 philips/PMS000022 \
94 picker/2.16.840.1.113662.2.1.53544936282433.12345.336.16650 \
95 picker/2.16.840.1.113662.4.8796818069641.798806497.93296077602350.10 \
96 picker/2.16.840.1.113662.4.8796818069641.798806497.93296077602350.20 \
97 picker/2.16.840.1.113662.4.8796818069641.798806497.93296077602350.30 \
98 siemens/SMS000005 \
99 siemens/SMS000009 \
100 siemens/SMS000013 \
101 siemens/SMS000017 \
102 siemens/SMS000018 \
103 siemens/SMS000019 \
104 siemens/SMS000023 \
105 toshiba/TMS061001)
106 if (! (-e $ROOT/print/images/$i)) then
107 echo Making $ROOT/print/images/$i
108 mkdir $ROOT/print/images/$i
109 endif
110 end
111
112 echo Print directory layout complete. You probably want to run the script
113 echo create_icons to create the files needed by print_mgr.