servicewidget/themes/install-themes/validate.cmd
branchRCL_3
changeset 23 9a48e301e94b
parent 0 5e5d6b214f4f
equal deleted inserted replaced
22:3104fc151679 23:9a48e301e94b
       
     1 @rem
       
     2 @rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 @rem All rights reserved.
       
     4 @rem This component and the accompanying materials are made available
       
     5 @rem under the terms of "Eclipse Public License v1.0"
       
     6 @rem which accompanies this distribution, and is available
       
     7 @rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 @rem
       
     9 @rem Initial Contributors:
       
    10 @rem Nokia Corporation - initial contribution.
       
    11 @rem
       
    12 @rem Contributors:
       
    13 @rem
       
    14 @rem Description: 
       
    15 @rem
       
    16 
       
    17 @ECHO OFF
       
    18 SETLOCAL
       
    19 
       
    20 SET PATH_LINT=C:\Apps\libxml2-2.6.23.win32\bin\xmllint.exe
       
    21 SET PATH_MANIFEST_XSD=hsps_manifest.xsd
       
    22 SET PATH_DEFINITION_XSD=hsps_definition.xsd
       
    23 
       
    24 IF NOT EXIST %PATH_MANIFEST_XSD% GOTO ERR_XSD
       
    25 IF NOT EXIST %PATH_DEFINITION_XSD% GOTO ERR_XSD
       
    26 
       
    27 SET ARGS_MANIFEST=--schema %PATH_MANIFEST_XSD% --noout
       
    28 SET ARGS_DEFINITION=--schema %PATH_DEFINITION_XSD% --noout
       
    29 
       
    30 echo.
       
    31 echo Validating AI3 against the HSPS schema files...
       
    32 echo.
       
    33 %PATH_LINT% .\install\wideimage\hsps\manifest.dat %ARGS_MANIFEST%
       
    34 %PATH_LINT% .\install\wideimage\hsps\widgetconfiguration.xml %ARGS_DEFINITION%
       
    35 
       
    36 %PATH_LINT% .\install\onerow\hsps\manifest.dat %ARGS_MANIFEST%
       
    37 %PATH_LINT% .\install\onerow\hsps\widgetconfiguration.xml %ARGS_DEFINITION%
       
    38 
       
    39 %PATH_LINT% .\install\tworows\hsps\manifest.dat %ARGS_MANIFEST%
       
    40 %PATH_LINT% .\install\tworows\hsps\widgetconfiguration.xml %ARGS_DEFINITION%
       
    41 
       
    42 %PATH_LINT% .\install\threerows\hsps\manifest.dat %ARGS_MANIFEST%
       
    43 %PATH_LINT% .\install\threerows\hsps\widgetconfiguration.xml %ARGS_DEFINITION%
       
    44 
       
    45 %PATH_LINT% .\install\threetextrows\hsps\manifest.dat %ARGS_MANIFEST%
       
    46 %PATH_LINT% .\install\threetextrows\hsps\widgetconfiguration.xml %ARGS_DEFINITION%
       
    47 
       
    48 %PATH_LINT% .\install\organizer\hsps\manifest.dat %ARGS_MANIFEST%
       
    49 %PATH_LINT% .\install\organizer\hsps\widgetconfiguration.xml %ARGS_DEFINITION%
       
    50 
       
    51 %PATH_LINT% .\install\root\hsps\manifest.dat %ARGS_MANIFEST%
       
    52 %PATH_LINT% .\install\root\hsps\rootconfiguration.xml %ARGS_DEFINITION%
       
    53 
       
    54 %PATH_LINT% .\install\shortcut\hsps\manifest.dat %ARGS_MANIFEST%
       
    55 %PATH_LINT% .\install\shortcut\hsps\widgetconfiguration.xml %ARGS_DEFINITION%
       
    56 
       
    57 %PATH_LINT% .\install\shortcut2\hsps\manifest.dat %ARGS_MANIFEST%
       
    58 %PATH_LINT% .\install\shortcut2\hsps\widgetconfiguration.xml %ARGS_DEFINITION%
       
    59 
       
    60 %PATH_LINT% .\install\view\hsps\manifest.dat %ARGS_MANIFEST%
       
    61 %PATH_LINT% .\install\view\hsps\viewconfiguration.xml %ARGS_DEFINITION%
       
    62 
       
    63 %PATH_LINT% .\install\empty\hsps\manifest.dat %ARGS_MANIFEST%
       
    64 %PATH_LINT% .\install\empty\hsps\widgetconfiguration.xml %ARGS_DEFINITION%
       
    65 
       
    66 GOTO END
       
    67 
       
    68 :ERR_LINT
       
    69 ECHO XMLLint was not found! Personlize the PATH_LINT variable in %0 and download the tool from HSPS's support pages.
       
    70 GOTO END
       
    71 
       
    72 :ERR_XSD
       
    73 ECHO Schemas were not found at %PATH_MANIFEST_XSD% and %PATH_DEFINITION_XSD%!
       
    74 GOTO END
       
    75 
       
    76 :END
       
    77 
       
    78 ENDLOCAL