First public contribution.
2 # Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
4 # This component and the accompanying materials are made available
5 # under the terms of "Eclipse Public License v1.0"
6 # which accompanies this distribution, and is available
7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 # Initial Contributors:
10 # Nokia Corporation - initial contribution.
23 $parentdir = getcwd();
25 $bitmapdatadir="/bitmap/fntfiles";
26 $bitmapdatadir = $parentdir . $bitmapdatadir;
28 if (-e "$bitmapdatadir")
30 #proceed with your code
34 eval { mkpath($bitmapdatadir) };
36 print "Couldn't create $dir: $@";
40 system("fnttran bitmap/squashed.bdf bitmap/calc35.bdf bitmap/calc13.bdf bitmap/calc18.bdf bitmap/calcinv.bdf bitmap/digit35.bdf bitmap/agnsym11.bdf bitmap/agnsym16.bdf bitmap/eiksym15.bdf bitmap/base.gd $bitmapdatadir/eon14.gdr");
42 #Use binarycopy procedure defined below to copy the files instead if copy command.
48 open OUTF, ">$_[$numOfParams-1]" or die "\nCan't open $_[$numOfParams-1] for writing: $!\n";
51 for($i=0;$i<$numOfParams-1;$i++)
53 open INF, $_[$i] or die "\nCan't open $_[$i] for reading: $!\n";
56 read (INF, $buffer, 65536) # read in (up to) 64k chunks, write
57 and print OUTF $buffer # exit if read or write fails
59 die "Problem copying: $!\n" if $!;
60 close INF or die "Can't close $_[$i]: $!\n";
62 close OUTF or die "Can't close $_[$numOfParams-1]: $!\n";