~ubuntu-branches/ubuntu/quantal/vice/quantal

« back to all changes in this revision

Viewing changes to src/arch/unix/qnx6/make-bindist.sh

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2009-03-31 00:37:15 UTC
  • mfrom: (1.1.7 upstream) (9.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090331003715-i5yisvcfv7mgz3eh
Tags: 2.1.dfsg-1
* New major upstream release (closes: #495937).
* Add desktop files (closes: #501181).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# make-bindist.sh for the QNX 6.x port
 
3
#
 
4
# written by Marco van den Heuvel <blackystardust68@yahoo.com>
 
5
#
 
6
# make-bindist.sh <strip> <vice-version> <prefix> <cross> <zip|nozip> <topsrcdir> <make-command>
 
7
#                 $1      $2             $3       $4      $5          $6          $7
 
8
 
 
9
STRIP=$1
 
10
VICEVERSION=$2
 
11
PREFIX=$3
 
12
CROSS=$4
 
13
ZIPKIND=$5
 
14
TOPSRCDIR=$6
 
15
MAKECOMMAND=$7
 
16
 
 
17
if test x"$PREFIX" != "x/opt"; then
 
18
  echo Error: installation path is not /opt
 
19
  exit 1
 
20
fi
 
21
 
 
22
if test x"$CROSS" = "xtrue"; then
 
23
  echo Error: \"make bindist\" for QNX 6 can only be done on QNX 6
 
24
  exit 1
 
25
fi
 
26
 
 
27
if [ ! -e src/x64 -o ! -e src/x64dtv -o ! -e src/x128 -o ! -e src/xvic -o ! -e src/xpet -o ! -e src/xplus4 -o ! -e src/xcbm2 -o ! -e src/c1541 -o ! -e src/petcat -o ! -e src/cartconv ]
 
28
then
 
29
  echo Error: \"make\" needs to be done first
 
30
  exit 1
 
31
fi
 
32
 
 
33
echo Generating QNX 6 port binary distribution.
 
34
rm -f -r VICE-$VICEVERSION
 
35
curdir=`pwd`
 
36
$MAKECOMMAND prefix=$curdir/VICE-$VICEVERSION/opt VICEDIR=$curdir/VICE-$VICEVERSION/opt/lib/vice install
 
37
$STRIP VICE-$VICEVERSION/opt/bin/x64
 
38
$STRIP VICE-$VICEVERSION/opt/bin/x64dtv
 
39
$STRIP VICE-$VICEVERSION/opt/bin/x128
 
40
$STRIP VICE-$VICEVERSION/opt/bin/xvic
 
41
$STRIP VICE-$VICEVERSION/opt/bin/xpet
 
42
$STRIP VICE-$VICEVERSION/opt/bin/xplus4
 
43
$STRIP VICE-$VICEVERSION/opt/bin/xcbm2
 
44
$STRIP VICE-$VICEVERSION/opt/bin/c1541
 
45
$STRIP VICE-$VICEVERSION/opt/bin/petcat
 
46
$STRIP VICE-$VICEVERSION/opt/bin/cartconv
 
47
rm `find VICE-$VICEVERSION -name "amiga_*.vkm"`
 
48
rm `find VICE-$VICEVERSION -name "beos_*.vkm"`
 
49
rm `find VICE-$VICEVERSION -name "dos_*.vkm"`
 
50
rm `find VICE-$VICEVERSION -name "os2*.vkm"`
 
51
rm `find VICE-$VICEVERSION -name "osx*.vkm"`
 
52
rm `find VICE-$VICEVERSION -name "win_*.vkm"`
 
53
rm `find VICE-$VICEVERSION -name "RO*.vkm"`
 
54
rm `find VICE-$VICEVERSION -name "*.vsc"`
 
55
if test x"$ZIPKIND" = "xzip"; then
 
56
  gcc $TOPSRCDIR/src/arch/unix/qnx6/getsize.c -o ./getsize
 
57
  gcc $TOPSRCDIR/src/arch/unix/qnx6/getlibs.c -o ./getlibs
 
58
  mkdir -p public/VICE/core-$VICEVERSION/x86/opt/bin
 
59
  mv VICE-$VICEVERSION/opt/bin/x* public/VICE/core-$VICEVERSION/x86/opt/bin
 
60
  mv VICE-$VICEVERSION/opt/bin/c1541 public/VICE/core-$VICEVERSION/x86/opt/bin
 
61
  mv VICE-$VICEVERSION/opt/bin/cartconv public/VICE/core-$VICEVERSION/x86/opt/bin
 
62
  mv VICE-$VICEVERSION/opt/bin/petcat public/VICE/core-$VICEVERSION/x86/opt/bin
 
63
 
 
64
  current_date=`date +%Y/%m/%d`
 
65
 
 
66
cat >manifest.01 <<_END
 
67
<?xml version="1.0"?>
 
68
<RDF:RDF xmlns:RDF="http://www.w3.org" xmlns:QPM="http://www.qnx.com">
 
69
   <RDF:Description about="http://www.qnx.com">
 
70
      <QPM:PackageManifest>
 
71
         <QPM:PackageDescription>
 
72
            <QPM:PackageType>Application</QPM:PackageType>
 
73
            <QPM:PackageName>VICE-$VICEVERSION-x86-public</QPM:PackageName>
 
74
_END
 
75
 
 
76
echo >manifest.02 "            <QPM:PackageSize/>"
 
77
 
 
78
cat >manifest.03 <<_END
 
79
            <QPM:PackageReleaseNumber>1</QPM:PackageReleaseNumber>
 
80
            <QPM:PackageReleaseDate>$current_date</QPM:PackageReleaseDate>
 
81
            <QPM:PackageRepository/>
 
82
            <QPM:FileVersion>2.0</QPM:FileVersion>
 
83
         </QPM:PackageDescription>
 
84
 
 
85
         <QPM:ProductDescription>
 
86
            <QPM:ProductName>VICE for x86</QPM:ProductName>
 
87
_END
 
88
 
 
89
  ls -l -R public/VICE/core-$VICEVERSION/x86/opt >size.tmp
 
90
  manifest_size=`./getsize size.tmp`
 
91
  rm -f -r size.tmp
 
92
  echo >manifest.04 "            <QPM:ProductSize>$manifest_size</QPM:ProductSize>"
 
93
 
 
94
  echo >manifest.05 "            <QPM:ProductIdentifier>VICE-host_x86</QPM:ProductIdentifier>"
 
95
 
 
96
  cat >manifest.06 <<_END
 
97
            <QPM:ProductEmail>vice-devel@firenze.linux.it</QPM:ProductEmail>
 
98
            <QPM:VendorName>Public</QPM:VendorName>
 
99
            <QPM:VendorInstallName>public</QPM:VendorInstallName>
 
100
            <QPM:VendorURL>http://www.viceteam.org</QPM:VendorURL>
 
101
            <QPM:VendorEmbedURL/>
 
102
            <QPM:VendorEmail>vice-devel@firenze.linux.it</QPM:VendorEmail>
 
103
            <QPM:AuthorName>The VICE Team</QPM:AuthorName>
 
104
            <QPM:AuthorURL>http://www.viceteam.org</QPM:AuthorURL>
 
105
            <QPM:AuthorEmbedURL/>
 
106
            <QPM:AuthorEmail>vice-devel@firenze.linux.it</QPM:AuthorEmail>
 
107
            <QPM:ProductIconSmall>http://www.trikaliotis.net/vicekb/common/vice-logo.png</QPM:ProductIconSmall>
 
108
            <QPM:ProductIconLarge>http://www.viceteam.org/images/vice-logo.jpg</QPM:ProductIconLarge>
 
109
            <QPM:ProductDescriptionShort>The Versatile Commodore Emulator</QPM:ProductDescriptionShort>
 
110
            <QPM:ProductDescriptionLong>VICE is a program that runs on a Unix, MS-DOS, Win32, OS/2, Acorn RISC OS, QNX 6.x, AmigaOS or BeOS machine and executes programs intended for the old 8-bit computers. The current version emulates the C64, the C128, the VIC20, all the PET models (except the SuperPET 9000, which is out of line anyway), the PLUS4 and the CBM-II (aka C610).</QPM:ProductDescriptionLong>
 
111
            <QPM:ProductDescriptionURL>http://www.viceteam.org</QPM:ProductDescriptionURL>
 
112
            <QPM:ProductDescriptionEmbedURL/>
 
113
_END
 
114
 
 
115
echo >manifest.07 "            <QPM:InstallPath>public/VICE/core-$VICEVERSION/x86</QPM:InstallPath>"
 
116
 
 
117
cat >manifest.08 <<_END
 
118
         </QPM:ProductDescription>
 
119
 
 
120
         <QPM:ReleaseDescription>
 
121
            <QPM:ReleaseDate>$current_date</QPM:ReleaseDate>
 
122
            <QPM:ReleaseVersion>$VICEVERSION</QPM:ReleaseVersion>
 
123
            <QPM:ReleaseUrgency>High</QPM:ReleaseUrgency>
 
124
            <QPM:ReleaseStability>Stable</QPM:ReleaseStability>
 
125
            <QPM:ReleaseNoteMinor/>
 
126
            <QPM:ReleaseNoteMajor/>
 
127
            <QPM:ReleaseBuild>1</QPM:ReleaseBuild>
 
128
            <QPM:ExcludeCountries>
 
129
               <QPM:Country/>
 
130
            </QPM:ExcludeCountries>
 
131
 
 
132
            <QPM:ReleaseCopyright>GNU General Public License</QPM:ReleaseCopyright>
 
133
         </QPM:ReleaseDescription>
 
134
 
 
135
         <QPM:LicenseUrl>rep://VICE-$VICEVERSION-public.repdata/LicenseUrl/COPYING</QPM:LicenseUrl>
 
136
         <QPM:ProductKeyUrl/>
 
137
         <QPM:RelationshipDescription>
 
138
_END
 
139
 
 
140
cat >manifest.09 <<_END
 
141
            <QPM:RelationshipType>component</QPM:RelationshipType>
 
142
            <QPM:ComponentType>Required</QPM:ComponentType>
 
143
            <QPM:ComponentParent>VICE</QPM:ComponentParent>
 
144
_END
 
145
 
 
146
cat >manifest.10 <<_END
 
147
            <QPM:ComponentFilter/>
 
148
         </QPM:RelationshipDescription>
 
149
 
 
150
         <QPM:ContentDescription>
 
151
            <QPM:ContentTopic>Games and Diversions/Game Emulatiors</QPM:ContentTopic>
 
152
            <QPM:ContentKeyword>c64,c128,vic20,plus4,c16,cbm510,cbm610,c510,c610,cbm,commodore,emulator,pet</QPM:ContentKeyword>
 
153
_END
 
154
 
 
155
echo >manifest.11 "            <QPM:Processor>x86</QPM:Processor>"
 
156
 
 
157
cat >manifest.12 <<_END
 
158
            <QPM:TargetProcessor/>
 
159
            <QPM:TargetOS>qnx6</QPM:TargetOS>
 
160
            <QPM:HostOS>none</QPM:HostOS>
 
161
            <QPM:DisplayEnvironment>X11R6</QPM:DisplayEnvironment>
 
162
            <QPM:TargetAudience>User</QPM:TargetAudience>
 
163
_END
 
164
 
 
165
  ./getlibs public/VICE/core-$VICEVERSION/x86/opt/bin/x64 >manifest.13
 
166
 
 
167
cat >manifest.14 <<_END
 
168
         </QPM:ContentDescription>
 
169
 
 
170
         <QPM:ProductInstallationDependencies>
 
171
            <QPM:ProductRequirements>This package requires the following libraries to operate correctly : libintl, libSDL, libpng, libX11.</QPM:ProductRequirements>
 
172
         </QPM:ProductInstallationDependencies>
 
173
_END
 
174
 
 
175
cat >manifest.15 <<_END
 
176
         <QPM:QNXLicenseDescription/>
 
177
      </QPM:PackageManifest>
 
178
 
 
179
      <QPM:FileManifest>
 
180
         <QPM:Listing>
 
181
            <QPM:Dir name="">
 
182
               <QPM:Dir name="opt">
 
183
                  <QPM:Dir name="bin">
 
184
                     <QPM:File>c1541</QPM:File>
 
185
                     <QPM:File>petcat</QPM:File>
 
186
                     <QPM:File>cartconv</QPM:File>
 
187
                     <QPM:File>x128</QPM:File>
 
188
                     <QPM:File>x64</QPM:File>
 
189
                     <QPM:File>x64dtv</QPM:File>
 
190
                     <QPM:File>xcbm2</QPM:File>
 
191
                     <QPM:File>xpet</QPM:File>
 
192
                     <QPM:File>xplus4</QPM:File>
 
193
                     <QPM:File>xvic</QPM:File>
 
194
                  </QPM:Dir>
 
195
               </QPM:Dir>
 
196
            </QPM:Dir>
 
197
         </QPM:Listing>
 
198
      </QPM:FileManifest>
 
199
   </RDF:Description>
 
200
</RDF:RDF>
 
201
_END
 
202
 
 
203
  cat >public/VICE/core-$VICEVERSION/x86/MANIFEST manifest.01 manifest.02 \
 
204
      manifest.03 manifest.04 manifest.05 manifest.06 manifest.07 manifest.08 \
 
205
      manifest.09 manifest.10 manifest.11 manifest.12 manifest.13 manifest.14 \
 
206
      manifest.15
 
207
 
 
208
  tar cf VICE-x86.tar public
 
209
  gzip VICE-x86.tar
 
210
  mv VICE-x86.tar.gz VICE-$VICEVERSION-x86-public.qpk
 
211
 
 
212
  ls -l -R VICE-$VICEVERSION-x86-public.qpk >size.tmp
 
213
  manifest_size=`./getsize size.tmp` 
 
214
  rm -f -r size.tmp
 
215
 
 
216
  echo >manifest.04 "            <QPM:PackageSize>$manifest_size</QPM:PackageSize>"
 
217
 
 
218
  cat >VICE-$VICEVERSION-x86-public.qpm manifest.01 manifest.02 manifest.03 manifest.04 \
 
219
      manifest.05 manifest.06 manifest.07 manifest.08 manifest.09 manifest.10 \
 
220
      manifest.11 manifest.12 manifest.13 manifest.14 manifest.15
 
221
 
 
222
  rm -f -r public
 
223
 
 
224
  mkdir -p public/VICE/core-$VICEVERSION
 
225
  mv VICE-$VICEVERSION/opt public/VICE/core-$VICEVERSION
 
226
 
 
227
  mkdir -p VICE-$VICEVERSION-public.repdata/LicenseUrl
 
228
  cp public/VICE/core-$VICEVERSION/opt/lib/vice/doc/COPYING VICE-$VICEVERSION-public.repdata/LicenseUrl
 
229
 
 
230
  echo >manifest.02 "            <QPM:PackageSize/>"
 
231
 
 
232
  ls -l -R public/VICE/core-$VICEVERSION/opt >size.tmp
 
233
  manifest_size=`./getsize size.tmp`
 
234
  rm -f -r size.tmp
 
235
  echo >manifest.04 "            <QPM:ProductSize>$manifest_size</QPM:ProductSize>"
 
236
 
 
237
  echo >manifest.05 "            <QPM:ProductIdentifier>VICE</QPM:ProductIdentifier>"
 
238
 
 
239
  echo >manifest.07 "            <QPM:InstallPath>public/VICE/core-$VICEVERSION</QPM:InstallPath>"
 
240
 
 
241
  cat >manifest.09 <<_END
 
242
            <QPM:RelationshipType>core</QPM:RelationshipType>
 
243
            <QPM:ComponentType>Required</QPM:ComponentType>
 
244
            <QPM:ComponentParent/>
 
245
_END
 
246
 
 
247
  echo >manifest.11 "            <QPM:Processor/>"
 
248
 
 
249
  cat >manifest.15 <<_END
 
250
         <QPM:ProductInstallationProcedure>
 
251
            <QPM:Script>
 
252
               <QPM:ScriptName>/usr/photon/bin/launchmenu_notify</QPM:ScriptName>
 
253
               <QPM:ScriptTiming>Post</QPM:ScriptTiming>
 
254
               <QPM:ScriptType>Use</QPM:ScriptType>
 
255
            </QPM:Script>
 
256
 
 
257
            <QPM:Script>
 
258
               <QPM:ScriptName>/usr/photon/bin/launchmenu_notify</QPM:ScriptName>
 
259
               <QPM:ScriptTiming>Post</QPM:ScriptTiming>
 
260
               <QPM:ScriptType>Unuse</QPM:ScriptType>
 
261
            </QPM:Script>
 
262
         </QPM:ProductInstallationProcedure>
 
263
 
 
264
         <QPM:QNXLicenseDescription/>
 
265
      </QPM:PackageManifest>
 
266
 
 
267
      <QPM:FileManifest>
 
268
         <QPM:PkgInclude>
 
269
            <QPM:Item>\$(PROCESSOR)/MANIFEST</QPM:Item>
 
270
         </QPM:PkgInclude>
 
271
 
 
272
         <QPM:Listing>
 
273
            <QPM:Dir name="">
 
274
               <QPM:Dir name="opt">
 
275
                  <QPM:Union link="../\$(PROCESSOR)/opt/bin">bin</QPM:Union>
 
276
                  <QPM:Dir name="bin">
 
277
                     <QPM:File>vsid</QPM:File>
 
278
                  </QPM:Dir>
 
279
 
 
280
                  <QPM:Dir name="info">
 
281
                     <QPM:File>vice.info</QPM:File>
 
282
                     <QPM:File>vice.info-1</QPM:File>
 
283
                     <QPM:File>vice.info-2</QPM:File>
 
284
                     <QPM:File>vice.info-3</QPM:File>
 
285
                     <QPM:File>vice.info-4</QPM:File>
 
286
                     <QPM:File>vice.info-5</QPM:File>
 
287
                     <QPM:File>vice.info-6</QPM:File>
 
288
                  </QPM:Dir>
 
289
 
 
290
                  <QPM:Dir name="lib">
 
291
                     <QPM:Dir name="locale">
 
292
                        <QPM:Dir name="de">
 
293
                           <QPM:Dir name="LC_MESSAGES">
 
294
                              <QPM:File>vice.mo</QPM:File>
 
295
                           </QPM:Dir>
 
296
                        </QPM:Dir>
 
297
 
 
298
                        <QPM:Dir name="fr">
 
299
                           <QPM:Dir name="LC_MESSAGES">
 
300
                              <QPM:File>vice.mo</QPM:File>
 
301
                           </QPM:Dir>
 
302
                        </QPM:Dir>
 
303
 
 
304
                        <QPM:Dir name="hu">
 
305
                           <QPM:Dir name="LC_MESSAGES">
 
306
                              <QPM:File>vice.mo</QPM:File>
 
307
                           </QPM:Dir>
 
308
                        </QPM:Dir>
 
309
 
 
310
                        <QPM:Dir name="it">
 
311
                           <QPM:Dir name="LC_MESSAGES">
 
312
                              <QPM:File>vice.mo</QPM:File>
 
313
                           </QPM:Dir>
 
314
                        </QPM:Dir>
 
315
 
 
316
                        <QPM:Dir name="nl">
 
317
                           <QPM:Dir name="LC_MESSAGES">
 
318
                              <QPM:File>vice.mo</QPM:File>
 
319
                           </QPM:Dir>
 
320
                        </QPM:Dir>
 
321
 
 
322
                        <QPM:Dir name="pl">
 
323
                           <QPM:Dir name="LC_MESSAGES">
 
324
                              <QPM:File>vice.mo</QPM:File>
 
325
                           </QPM:Dir>
 
326
                        </QPM:Dir>
 
327
 
 
328
                        <QPM:Dir name="sv">
 
329
                           <QPM:Dir name="LC_MESSAGES">
 
330
                              <QPM:File>vice.mo</QPM:File>
 
331
                           </QPM:Dir>
 
332
                        </QPM:Dir>
 
333
                     </QPM:Dir>
 
334
 
 
335
                     <QPM:Dir name="vice">
 
336
                        <QPM:Dir name="C128">
 
337
                           <QPM:File>basic64</QPM:File>
 
338
                           <QPM:File>basichi</QPM:File>
 
339
                           <QPM:File>basiclo</QPM:File>
 
340
                           <QPM:File>c64hq.vpl</QPM:File>
 
341
                           <QPM:File>c64s.vpl</QPM:File>
 
342
                           <QPM:File>ccs64.vpl</QPM:File>
 
343
                           <QPM:File>chargde</QPM:File>
 
344
                           <QPM:File>chargen</QPM:File>
 
345
                           <QPM:File>chargfr</QPM:File>
 
346
                           <QPM:File>chargse</QPM:File>
 
347
                           <QPM:File>default.vpl</QPM:File>
 
348
                           <QPM:File>default.vrs</QPM:File>
 
349
                           <QPM:File>frodo.vpl</QPM:File>
 
350
                           <QPM:File>godot.vpl</QPM:File>
 
351
                           <QPM:File>kernal</QPM:File>
 
352
                           <QPM:File>kernal64</QPM:File>
 
353
                           <QPM:File>kernalde</QPM:File>
 
354
                           <QPM:File>kernalfi</QPM:File>
 
355
                           <QPM:File>kernalfr</QPM:File>
 
356
                           <QPM:File>kernalit</QPM:File>
 
357
                           <QPM:File>kernalno</QPM:File>
 
358
                           <QPM:File>kernalse</QPM:File>
 
359
                           <QPM:File>pc64.vpl</QPM:File>
 
360
                           <QPM:File>vdc_deft.vpl</QPM:File>
 
361
                           <QPM:File>vice.vpl</QPM:File>
 
362
                           <QPM:File>x11_pos.vkm</QPM:File>
 
363
                           <QPM:File>x11_sym.vkm</QPM:File>
 
364
                        </QPM:Dir>
 
365
 
 
366
                        <QPM:Dir name="C64">
 
367
                           <QPM:File>basic</QPM:File>
 
368
                           <QPM:File>c64hq.vpl</QPM:File>
 
369
                           <QPM:File>c64mem.sym</QPM:File>
 
370
                           <QPM:File>c64s.vpl</QPM:File>
 
371
                           <QPM:File>ccs64.vpl</QPM:File>
 
372
                           <QPM:File>chargen</QPM:File>
 
373
                           <QPM:File>default.vpl</QPM:File>
 
374
                           <QPM:File>default.vrs</QPM:File>
 
375
                           <QPM:File>frodo.vpl</QPM:File>
 
376
                           <QPM:File>godot.vpl</QPM:File>
 
377
                           <QPM:File>kernal</QPM:File>
 
378
                           <QPM:File>pc64.vpl</QPM:File>
 
379
                           <QPM:File>vice.vpl</QPM:File>
 
380
                           <QPM:File>x11_pos.vkm</QPM:File>
 
381
                           <QPM:File>x11_sym.vkm</QPM:File>
 
382
                        </QPM:Dir>
 
383
 
 
384
                        <QPM:Dir name="C64DTV">
 
385
                           <QPM:File>basic</QPM:File>
 
386
                           <QPM:File>c64hq.vpl</QPM:File>
 
387
                           <QPM:File>c64mem.sym</QPM:File>
 
388
                           <QPM:File>c64s.vpl</QPM:File>
 
389
                           <QPM:File>ccs64.vpl</QPM:File>
 
390
                           <QPM:File>chargen</QPM:File>
 
391
                           <QPM:File>default.vpl</QPM:File>
 
392
                           <QPM:File>default.vrs</QPM:File>
 
393
                           <QPM:File>frodo.vpl</QPM:File>
 
394
                           <QPM:File>godot.vpl</QPM:File>
 
395
                           <QPM:File>kernal</QPM:File>
 
396
                           <QPM:File>pc64.vpl</QPM:File>
 
397
                           <QPM:File>vice.vpl</QPM:File>
 
398
                           <QPM:File>x11_pos.vkm</QPM:File>
 
399
                           <QPM:File>x11_sym.vkm</QPM:File>
 
400
                        </QPM:Dir>
 
401
 
 
402
                        <QPM:Dir name="CBM-II">
 
403
                           <QPM:File>amber.vpl</QPM:File>
 
404
                           <QPM:File>basic.128</QPM:File>
 
405
                           <QPM:File>basic.256</QPM:File>
 
406
                           <QPM:File>basic.500</QPM:File>
 
407
                           <QPM:File>c64hq.vpl</QPM:File>
 
408
                           <QPM:File>c64s.vpl</QPM:File>
 
409
                           <QPM:File>ccs64.vpl</QPM:File>
 
410
                           <QPM:File>chargen.500</QPM:File>
 
411
                           <QPM:File>chargen.600</QPM:File>
 
412
                           <QPM:File>chargen.700</QPM:File>
 
413
                           <QPM:File>default.vpl</QPM:File>
 
414
                           <QPM:File>frodo.vpl</QPM:File>
 
415
                           <QPM:File>godot.vpl</QPM:File>
 
416
                           <QPM:File>green.vpl</QPM:File>
 
417
                           <QPM:File>kernal</QPM:File>
 
418
                           <QPM:File>kernal.500</QPM:File>
 
419
                           <QPM:File>pc64.vpl</QPM:File>
 
420
                           <QPM:File>rom128h.vrs</QPM:File>
 
421
                           <QPM:File>rom128l.vrs</QPM:File>
 
422
                           <QPM:File>rom256h.vrs</QPM:File>
 
423
                           <QPM:File>rom256l.vrs</QPM:File>
 
424
                           <QPM:File>rom500.vrs</QPM:File>
 
425
                           <QPM:File>white.vpl</QPM:File>
 
426
                           <QPM:File>x11_buks.vkm</QPM:File>
 
427
                        </QPM:Dir>
 
428
 
 
429
                        <QPM:Dir name="DRIVES">
 
430
                           <QPM:File>d1541II</QPM:File>
 
431
                           <QPM:File>d1571cr</QPM:File>
 
432
                           <QPM:File>dos1001</QPM:File>
 
433
                           <QPM:File>dos1541</QPM:File>
 
434
                           <QPM:File>dos1551</QPM:File>
 
435
                           <QPM:File>dos1570</QPM:File>
 
436
                           <QPM:File>dos1571</QPM:File>
 
437
                           <QPM:File>dos1581</QPM:File>
 
438
                           <QPM:File>dos2031</QPM:File>
 
439
                           <QPM:File>dos2040</QPM:File>
 
440
                           <QPM:File>dos3040</QPM:File>
 
441
                           <QPM:File>dos4040</QPM:File>
 
442
                        </QPM:Dir>
 
443
 
 
444
                        <QPM:Dir name="PET">
 
445
                           <QPM:File>amber.vpl</QPM:File>
 
446
                           <QPM:File>basic1</QPM:File>
 
447
                           <QPM:File>basic2</QPM:File>
 
448
                           <QPM:File>basic4</QPM:File>
 
449
                           <QPM:File>chargen</QPM:File>
 
450
                           <QPM:File>chargen.de</QPM:File>
 
451
                           <QPM:File>edit1g</QPM:File>
 
452
                           <QPM:File>edit2b</QPM:File>
 
453
                           <QPM:File>edit2g</QPM:File>
 
454
                           <QPM:File>edit4b40</QPM:File>
 
455
                           <QPM:File>edit4b80</QPM:File>
 
456
                           <QPM:File>edit4g40</QPM:File>
 
457
                           <QPM:File>green.vpl</QPM:File>
 
458
                           <QPM:File>kernal1</QPM:File>
 
459
                           <QPM:File>kernal2</QPM:File>
 
460
                           <QPM:File>kernal4</QPM:File>
 
461
                           <QPM:File>rom1g.vrs</QPM:File>
 
462
                           <QPM:File>rom2b.vrs</QPM:File>
 
463
                           <QPM:File>rom2g.vrs</QPM:File>
 
464
                           <QPM:File>rom4b40.vrs</QPM:File>
 
465
                           <QPM:File>rom4b80.vrs</QPM:File>
 
466
                           <QPM:File>rom4g40.vrs</QPM:File>
 
467
                           <QPM:File>white.vpl</QPM:File>
 
468
                           <QPM:File>x11_bdep.vkm</QPM:File>
 
469
                           <QPM:File>x11_bdes.vkm</QPM:File>
 
470
                           <QPM:File>x11_bgrs.vkm</QPM:File>
 
471
                           <QPM:File>x11_buks.vkm</QPM:File>
 
472
                        </QPM:Dir>
 
473
 
 
474
                        <QPM:Dir name="PLUS4">
 
475
                           <QPM:File>3plus1hi</QPM:File>
 
476
                           <QPM:File>3plus1lo</QPM:File>
 
477
                           <QPM:File>basic</QPM:File>
 
478
                           <QPM:File>default.vpl</QPM:File>
 
479
                           <QPM:File>default.vrs</QPM:File>
 
480
                           <QPM:File>kernal</QPM:File>
 
481
                           <QPM:File>vice.vpl</QPM:File>
 
482
                           <QPM:File>x11_pos.vkm</QPM:File>
 
483
                           <QPM:File>x11_sym.vkm</QPM:File>
 
484
                        </QPM:Dir>
 
485
 
 
486
                        <QPM:Dir name="PRINTER">
 
487
                           <QPM:File>cbm1526</QPM:File>
 
488
                           <QPM:File>mps801</QPM:File>
 
489
                           <QPM:File>mps803</QPM:File>
 
490
                           <QPM:File>mps803.vpl</QPM:File>
 
491
                           <QPM:File>nl10-cbm</QPM:File>
 
492
                        </QPM:Dir>
 
493
 
 
494
                        <QPM:Dir name="VIC20">
 
495
                           <QPM:File>basic</QPM:File>
 
496
                           <QPM:File>chargen</QPM:File>
 
497
                           <QPM:File>default.vpl</QPM:File>
 
498
                           <QPM:File>default.vrs</QPM:File>
 
499
                           <QPM:File>kernal</QPM:File>
 
500
                           <QPM:File>x11_pos.vkm</QPM:File>
 
501
                           <QPM:File>x11_sym.vkm</QPM:File>
 
502
                        </QPM:Dir>
 
503
 
 
504
                        <QPM:Dir name="doc">
 
505
                           <QPM:File>64doc.txt</QPM:File>
 
506
                           <QPM:File>BUGS</QPM:File>
 
507
                           <QPM:File>COPYING</QPM:File>
 
508
                           <QPM:File>MSDOS-Ethernet-Howto.txt</QPM:File>
 
509
                           <QPM:File>MSDOS-Howto.txt</QPM:File>
 
510
                           <QPM:File>MinixVmd-Howto.txt</QPM:File>
 
511
                           <QPM:File>NEWS</QPM:File>
 
512
                           <QPM:File>NLS-Howto.txt</QPM:File>
 
513
                           <QPM:File>PETdoc.txt</QPM:File>
 
514
                           <QPM:File>Readme.beos</QPM:File>
 
515
                           <QPM:File>Readme.dos</QPM:File>
 
516
                           <QPM:File>ReadmeMacOSX.txt</QPM:File>
 
517
                           <QPM:File>TODO</QPM:File>
 
518
                           <QPM:File>Walkthrough-Howto.txt</QPM:File>
 
519
                           <QPM:File>Win32-Howto.txt</QPM:File>
 
520
                           <QPM:File>cbm_basic_tokens.txt</QPM:File>
 
521
                           <QPM:File>drive_info.txt</QPM:File>
 
522
                           <QPM:File>iec-bus.txt</QPM:File>
 
523
                           <QPM:File>index.html</QPM:File>
 
524
                           <QPM:File>mon.txt</QPM:File>
 
525
                           <QPM:File>new.gif</QPM:File>
 
526
                           <QPM:File>serial.txt</QPM:File>
 
527
                           <QPM:File>vice-logo.jpg</QPM:File>
 
528
                           <QPM:File>vice_1.html</QPM:File>
 
529
                           <QPM:File>vice_10.html</QPM:File>
 
530
                           <QPM:File>vice_11.html</QPM:File>
 
531
                           <QPM:File>vice_12.html</QPM:File>
 
532
                           <QPM:File>vice_13.html</QPM:File>
 
533
                           <QPM:File>vice_14.html</QPM:File>
 
534
                           <QPM:File>vice_15.html</QPM:File>
 
535
                           <QPM:File>vice_16.html</QPM:File>
 
536
                           <QPM:File>vice_2.html</QPM:File>
 
537
                           <QPM:File>vice_3.html</QPM:File>
 
538
                           <QPM:File>vice_4.html</QPM:File>
 
539
                           <QPM:File>vice_5.html</QPM:File>
 
540
                           <QPM:File>vice_6.html</QPM:File>
 
541
                           <QPM:File>vice_7.html</QPM:File>
 
542
                           <QPM:File>vice_8.html</QPM:File>
 
543
                           <QPM:File>vice_9.html</QPM:File>
 
544
                           <QPM:File>vice_toc.html</QPM:File>
 
545
                        </QPM:Dir>
 
546
 
 
547
                        <QPM:Dir name="fonts">
 
548
                           <QPM:File>fonts.dir</QPM:File>
 
549
                           <QPM:File>vice-cbm.pcf</QPM:File>
 
550
                        </QPM:Dir>
 
551
                     </QPM:Dir>
 
552
                  </QPM:Dir>
 
553
 
 
554
                  <QPM:Dir name="man">
 
555
                     <QPM:Dir name="man1">
 
556
                        <QPM:File>c1541.1</QPM:File>
 
557
                        <QPM:File>petcat.1</QPM:File>
 
558
                        <QPM:File>vice.1</QPM:File>
 
559
                     </QPM:Dir>
 
560
                  </QPM:Dir>
 
561
               </QPM:Dir>
 
562
 
 
563
               <QPM:Dir name="usr">
 
564
                  <QPM:Union link="../opt/info">info</QPM:Union>
 
565
                  <QPM:Union link="../opt/bin">bin</QPM:Union>
 
566
                  <QPM:Union link="../\$(PROCESSOR)/opt/bin">bin</QPM:Union>
 
567
                  <QPM:Dir name="lib">
 
568
                     <QPM:Dir name="locale">
 
569
                        <QPM:Dir name="de">
 
570
                           <QPM:Union link="../../../../opt/lib/locale/de/LC_MESSAGES">LC_MESSAGES</QPM:Union>
 
571
                        </QPM:Dir>
 
572
 
 
573
                        <QPM:Dir name="fr">
 
574
                           <QPM:Union link="../../../../opt/lib/locale/fr/LC_MESSAGES">LC_MESSAGES</QPM:Union>
 
575
                        </QPM:Dir>
 
576
 
 
577
                        <QPM:Dir name="hu">
 
578
                           <QPM:Union link="../../../../opt/lib/locale/hu/LC_MESSAGES">LC_MESSAGES</QPM:Union>
 
579
                        </QPM:Dir>
 
580
 
 
581
                        <QPM:Dir name="it">
 
582
                           <QPM:Union link="../../../../opt/lib/locale/it/LC_MESSAGES">LC_MESSAGES</QPM:Union>
 
583
                        </QPM:Dir>
 
584
 
 
585
                        <QPM:Dir name="nl">
 
586
                           <QPM:Union link="../../../../opt/lib/locale/nl/LC_MESSAGES">LC_MESSAGES</QPM:Union>
 
587
                        </QPM:Dir>
 
588
 
 
589
                        <QPM:Dir name="pl">
 
590
                           <QPM:Union link="../../../../opt/lib/locale/pl/LC_MESSAGES">LC_MESSAGES</QPM:Union>
 
591
                        </QPM:Dir>
 
592
 
 
593
                        <QPM:Dir name="sv">
 
594
                           <QPM:Union link="../../../../opt/lib/locale/sv/LC_MESSAGES">LC_MESSAGES</QPM:Union>
 
595
                        </QPM:Dir>
 
596
                     </QPM:Dir>
 
597
 
 
598
                     <QPM:Dir name="vice">
 
599
                        <QPM:Union link="../../../opt/lib/vice/fonts">fonts</QPM:Union>
 
600
                        <QPM:Union link="../../../opt/lib/vice/doc">doc</QPM:Union>
 
601
                        <QPM:Union link="../../../opt/lib/vice/VIC20">VIC20</QPM:Union>
 
602
                        <QPM:Union link="../../../opt/lib/vice/PRINTER">PRINTER</QPM:Union>
 
603
                        <QPM:Union link="../../../opt/lib/vice/PLUS4">PLUS4</QPM:Union>
 
604
                        <QPM:Union link="../../../opt/lib/vice/PET">PET</QPM:Union>
 
605
                        <QPM:Union link="../../../opt/lib/vice/DRIVES">DRIVES</QPM:Union>
 
606
                        <QPM:Union link="../../../opt/lib/vice/CBM-II">CBM-II</QPM:Union>
 
607
                        <QPM:Union link="../../../opt/lib/vice/C64">C64</QPM:Union>
 
608
                        <QPM:Union link="../../../opt/lib/vice/C64DTV">C64DTV</QPM:Union>
 
609
                        <QPM:Union link="../../../opt/lib/vice/C128">C128</QPM:Union>
 
610
                     </QPM:Dir>
 
611
                  </QPM:Dir>
 
612
 
 
613
                  <QPM:Dir name="man">
 
614
                     <QPM:Union link="../../opt/man/man1">man1</QPM:Union>
 
615
                  </QPM:Dir>
 
616
               </QPM:Dir>
 
617
            </QPM:Dir>
 
618
         </QPM:Listing>
 
619
      </QPM:FileManifest>
 
620
 
 
621
      <QPM:Launch name="x64">
 
622
         <QPM:String name="Topic" value="Applications/Emulators"/>
 
623
         <QPM:String name="Command" value="/opt/bin/x64"/>
 
624
         <QPM:String name="Icon" value="/usr/share/icons/topics/chameleon.gif"/>
 
625
      </QPM:Launch>
 
626
 
 
627
      <QPM:Launch name="x64 (no sound)">
 
628
         <QPM:String name="Topic" value="Applications/Emulators"/>
 
629
         <QPM:String name="Command" value="/opt/bin/x64 -sounddev dummy"/>
 
630
         <QPM:String name="Icon" value="/usr/share/icons/topics/chameleon.gif"/>
 
631
      </QPM:Launch>
 
632
 
 
633
      <QPM:Launch name="x64dtv">
 
634
         <QPM:String name="Topic" value="Applications/Emulators"/>
 
635
         <QPM:String name="Command" value="/opt/bin/x64dtv"/>
 
636
         <QPM:String name="Icon" value="/usr/share/icons/topics/chameleon.gif"/>
 
637
      </QPM:Launch>
 
638
 
 
639
      <QPM:Launch name="x64dtv (no sound)">
 
640
         <QPM:String name="Topic" value="Applications/Emulators"/>
 
641
         <QPM:String name="Command" value="/opt/bin/x64dtv -sounddev dummy"/>
 
642
         <QPM:String name="Icon" value="/usr/share/icons/topics/chameleon.gif"/>
 
643
      </QPM:Launch>
 
644
 
 
645
      <QPM:Launch name="x128">
 
646
         <QPM:String name="Topic" value="Applications/Emulators"/>
 
647
         <QPM:String name="Command" value="/opt/bin/x128"/>
 
648
         <QPM:String name="Icon" value="/usr/share/icons/topics/chameleon.gif"/>
 
649
      </QPM:Launch>
 
650
 
 
651
      <QPM:Launch name="x128 (no sound)">
 
652
         <QPM:String name="Topic" value="Applications/Emulators"/>
 
653
         <QPM:String name="Command" value="/opt/bin/x128 -sounddev dummy"/>
 
654
         <QPM:String name="Icon" value="/usr/share/icons/topics/chameleon.gif"/>
 
655
      </QPM:Launch>
 
656
 
 
657
      <QPM:Launch name="xvic">
 
658
         <QPM:String name="Topic" value="Applications/Emulators"/>
 
659
         <QPM:String name="Command" value="/opt/bin/xvic"/>
 
660
         <QPM:String name="Icon" value="/usr/share/icons/topics/chameleon.gif"/>
 
661
      </QPM:Launch>
 
662
 
 
663
      <QPM:Launch name="xvic (no sound)">
 
664
         <QPM:String name="Topic" value="Applications/Emulators"/>
 
665
         <QPM:String name="Command" value="/opt/bin/xvic -sounddev dummy"/>
 
666
         <QPM:String name="Icon" value="/usr/share/icons/topics/chameleon.gif"/>
 
667
      </QPM:Launch>
 
668
 
 
669
      <QPM:Launch name="xpet">
 
670
         <QPM:String name="Topic" value="Applications/Emulators"/>
 
671
         <QPM:String name="Command" value="/opt/bin/xpet"/>
 
672
         <QPM:String name="Icon" value="/usr/share/icons/topics/chameleon.gif"/>
 
673
      </QPM:Launch>
 
674
 
 
675
      <QPM:Launch name="xpet (no sound)">
 
676
         <QPM:String name="Topic" value="Applications/Emulators"/>
 
677
         <QPM:String name="Command" value="/opt/bin/xpet -sounddev dummy"/>
 
678
         <QPM:String name="Icon" value="/usr/share/icons/topics/chameleon.gif"/>
 
679
      </QPM:Launch>
 
680
 
 
681
      <QPM:Launch name="xplus4">
 
682
         <QPM:String name="Topic" value="Applications/Emulators"/>
 
683
         <QPM:String name="Command" value="/opt/bin/xplus4"/>
 
684
         <QPM:String name="Icon" value="/usr/share/icons/topics/chameleon.gif"/>
 
685
      </QPM:Launch>
 
686
 
 
687
      <QPM:Launch name="xplus4 (no sound)">
 
688
         <QPM:String name="Topic" value="Applications/Emulators"/>
 
689
         <QPM:String name="Command" value="/opt/bin/xplus4 -sounddev dummy"/>
 
690
         <QPM:String name="Icon" value="/usr/share/icons/topics/chameleon.gif"/>
 
691
      </QPM:Launch>
 
692
 
 
693
      <QPM:Launch name="xcbm2">
 
694
         <QPM:String name="Topic" value="Applications/Emulators"/>
 
695
         <QPM:String name="Command" value="/opt/bin/xcbm2"/>
 
696
         <QPM:String name="Icon" value="/usr/share/icons/topics/chameleon.gif"/>
 
697
      </QPM:Launch>
 
698
 
 
699
      <QPM:Launch name="xcbm2 (no sound)">
 
700
         <QPM:String name="Topic" value="Applications/Emulators"/>
 
701
         <QPM:String name="Command" value="/opt/bin/xcbm2 -sounddev dummy"/>
 
702
         <QPM:String name="Icon" value="/usr/share/icons/topics/chameleon.gif"/>
 
703
      </QPM:Launch>
 
704
   </RDF:Description>
 
705
</RDF:RDF>
 
706
_END
 
707
 
 
708
  cat >public/VICE/core-$VICEVERSION/MANIFEST manifest.01 manifest.02 manifest.03 \
 
709
      manifest.04 manifest.05 manifest.06 manifest.07 manifest.08 manifest.09 \
 
710
      manifest.10 manifest.11 manifest.12 manifest.14 manifest.15
 
711
 
 
712
  tar cf VICE-core.tar public
 
713
  gzip VICE-core.tar
 
714
  mv VICE-core.tar.gz VICE-$VICEVERSION-public.qpk
 
715
 
 
716
  ls -l -R VICE-$VICEVERSION-public.qpk >size.tmp
 
717
  manifest_size=`./getsize size.tmp` 
 
718
  rm -f -r size.tmp
 
719
 
 
720
  echo >manifest.04 "            <QPM:PackageSize>$manifest_size</QPM:PackageSize>"
 
721
 
 
722
  cat >VICE-$VICEVERSION-public.qpm manifest.01 manifest.02 manifest.03 manifest.04 \
 
723
      manifest.05 manifest.06 manifest.07 manifest.08 manifest.09 manifest.10 \
 
724
      manifest.11 manifest.12 manifest.14 manifest.15
 
725
 
 
726
  rm -f -r public
 
727
 
 
728
  tar cf VICE-x86.tar VICE-$VICEVERSION-public.qp? VICE-$VICEVERSION-public.repdata VICE-$VICEVERSION-x86-public.qp?
 
729
  gzip VICE-x86.tar
 
730
  mv VICE-x86.tar.gz VICE-$VICEVERSION-x86-public.qpr
 
731
 
 
732
  rm -f -r *.qpk *.qpm *.repdata manifest.* VICE-$VICEVERSION
 
733
 
 
734
  echo QNX 6 port binary package part generated as VICE-$VICEVERSION-x86-public.qpr
 
735
else
 
736
  echo QNX 6 port binary distribution directory generated as VICE-$VICEVERSION
 
737
fi