os/persistentdata/featuremgmt/featureregistry/tools/featregconfig/scripts/makefeatregconfig.pl
Update contrib.
1 # Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
3 # This component and the accompanying materials are made available
4 # under the terms of "Eclipse Public License v1.0"
5 # which accompanies this distribution, and is available
6 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 # Initial Contributors:
9 # Nokia Corporation - initial contribution.
14 # Write a Feature Registry Configuration File
20 my $record = pack 'a4I3',
21 'feat', # Must be exactly this
22 0, # Must be exactly this
23 3, # feature entry count
24 2; # default-supported range count
28 1, # status of UID1 (bit 0 = 0x1 is set if feature is present)
33 # Default Supported Ranges:
37 # Symbian Essential Default supported range
41 #$record .= '?' x 66000; # to make the file larger than the limit
44 open ($BINCONFIG, '>featreg.cfg') or die "Could not open binary config file for writing\n";
46 syswrite $BINCONFIG, $record, length $record;