Debian Codegraph @

spectro/instlib.ksh

raw symbols SCIP
1 #!/bin/sh
2
3 # Package up the source and other files for the standalone GPLv2 Instrument library.
4
5 # Copyright 2007 - 2013 Graeme W. Gill
6 # This material is licenced under the GNU GENERAL PUBLIC LICENSE Version 2 or later :-
7 # see the License2.txt file for licencing details.
8
9 echo "Making standalone GPLv2 instrument archive instlib.zip "
10
11 H_FILES="
12 ../h/sort.h
13 "
14
15 NUMLIB_FILES="
16 ../numlib/numsup.h
17 ../numlib/numsup.c
18 "
19
20 CGATS_FILES="
21 ../cgats/pars.h
22 ../cgats/pars.c
23 ../cgats/parsstd.c
24 ../cgats/cgats.h
25 ../cgats/cgats.c
26 ../cgats/cgatsstd.c
27 "
28
29 XICC_FILES="
30 ../xicc/xspect.h
31 ../xicc/xspect.c
32 ../xicc/ccss.h
33 ../xicc/ccss.c
34 ../xicc/ccmx.h
35 ../xicc/ccmx.c
36 "
37
38 RSPL_FILES="
39 ../rspl/rspl1.h
40 ../rspl/rspl1.c
41 "
42
43 SPECTRO_FILES="
44 License2.txt
45 spotread.c
46 Makefile.OSX
47 Makefile.UNIX
48 Makefile.WNT
49 pollem.h
50 pollem.c
51 conv.h
52 conv.c
53 sa_conv.h
54 sa_conv.c
55 aglob.c
56 aglob.h
57 hidio.h
58 hidio.c
59 icoms.h
60 dev.h
61 inst.h
62 inst.c
63 insttypes.c
64 insttypes.h
65 insttypeinst.h
66 instappsup.c
67 instappsup.h
68 disptechs.h
69 disptechs.c
70 dtp20.c
71 dtp20.h
72 dtp22.c
73 dtp22.h
74 dtp41.c
75 dtp41.h
76 dtp51.c
77 dtp51.h
78 dtp92.c
79 dtp92.h
80 ss.h
81 ss.c
82 ss_imp.h
83 ss_imp.c
84 i1disp.c
85 i1disp.h
86 i1d3.h
87 i1d3.c
88 i1pro.h
89 i1pro.c
90 i1pro_imp.h
91 i1pro_imp.c
92 i1pro3.h
93 i1pro3.c
94 i1pro3_imp.h
95 i1pro3_imp.c
96 munki.h
97 munki.c
98 munki_imp.h
99 munki_imp.c
100 hcfr.c
101 hcfr.h
102 huey.c
103 huey.h
104 colorhug.c
105 colorhug.h
106 spyd2.c
107 spyd2.h
108 spydX.c
109 spydX.h
110 specbos.h
111 specbos.c
112 kleink10.h
113 kleink10.c
114 ex1.c
115 ex1.h
116 smcube.h
117 smcube.c
118 cubecal.h
119 oemarch.c
120 oemarch.h
121 oeminst.c
122 vinflate.c
123 inflate.c
124 LzmaDec.c
125 LzmaDec.h
126 LzmaTypes.h
127 icoms.c
128 icoms_nt.c
129 icoms_ux.c
130 iusb.h
131 usbio.h
132 usbio.c
133 usbio_nt.c
134 usbio_w0.c
135 usbio_dk.c
136 usbio_ox.c
137 usbio_lx.c
138 rspec.h
139 rspec.c
140 xdg_bds.c
141 xdg_bds.h
142 base64.h
143 base64.c
144 xrga.h
145 xrga.c
146 driver_api.h
147 "
148
149 FILES=" $H_FILES $CGATS_FILES $NUMLIB_FILES $RSPL_FILES $XICC_FILES $SPECTRO_FILES "
150
151 rm -f instlib.zip
152 rm -rf _zipdir
153 rm -f _ziplist
154 mkdir _zipdir
155 mkdir _zipdir/instlib
156
157
158 # Archive the Argyll files needed
159 for j in $FILES
160 do
161 if [ ! -e ${j} ] ; then
162 echo "!!!!!!!!!!!!!!!!!!!!!!!!!!! Can't find file ${j} !!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
163 NOTFOUND="$NOTFOUND ${j}"
164 else
165 cp ${j} _zipdir/instlib/${j##*/}
166 echo instlib/${j##*/} >> _ziplist
167 fi
168 done
169
170 # Plus renamed files
171 cp IntsLib_Readme.txt _zipdir/instlib/Readme.txt
172 echo instlib/Readme.txt >> _ziplist
173 cp Jamfile.SA _zipdir/instlib/Jamfile
174 cp Makefile.SA _zipdir/instlib/Makefile
175 echo instlib/Jamfile >> _ziplist
176 echo instlib/Makefile >> _ziplist
177 cp ../h/aconfig.h _zipdir/instlib/sa_config.h
178 echo instlib/sa_config.h >> _ziplist
179
180 # Create usb archive
181
182 for j in `cat ../usb/afiles | grep -E -v 'afiles|binfiles.msw|binfiles.osx|binfiles.lx|Jamfile|ArgyllCMS.inf.t|ArgyllCMS.inf.d'`
183 do
184 echo "File ${j}"
185
186 # Create any needed temporary directories
187
188 tt=usb/${j}
189 path=${tt%/*} # extract path without filename
190
191 echo "path ${path}"
192
193 if [ ! -e _zipdir/instlib/${path} ] ; then # if not been created
194 echo "Creating directory _zipdir/instlib/${path}"
195 mkdir -p _zipdir/instlib/${path}
196 fi
197
198 tt=../${tt}
199
200 if [ ! -e ${tt} ] ; then
201 echo "!!!!!!!!!!!!!!!!!!!!!!!!!!! Can't find file ${tt} !!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
202 NOTFOUND="$NOTFOUND ${tt}"
203 else
204 cp ${tt} _zipdir/instlib/usb/${j}
205 echo instlib/usb/${j} >> _ziplist
206 fi
207 done
208
209 cd _zipdir
210 zip -9 -m ../instlib.zip `cat ../_ziplist`
211 cd ..
212 rm -rf _zipdir
213 rm -f _ziplist
214
215 if [ "X$NOTFOUND" != "X" ] ; then
216 echo "!!!!!! Didn't find $NOTFOUND !!!!!!"
217 fi
218
219 echo "Created instlib.zip"