Changeset 13 in pacpussensors


Ignore:
Timestamp:
Jul 1, 2013, 1:20:45 PM (11 years ago)
Author:
Marek Kurdej
Message:

[script] Update NewComponent.bat script.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NewComponent.bat

    r12 r13  
    22setlocal ENABLEDELAYEDEXPANSION
    33
    4 set DebugOutput=1
     4set DebugOutput=0
    55set ExampleComponent=ExampleComponent
    66
     
    8383)
    8484
     85::cmake-manual-changes
     86echo NOTE:
     87echo You have to add line:
     88echo      add_subdirectory(%_componentDir%)
     89echo to the root CMakeLists.txt.
     90
    8591goto:EOF
    8692
     
    94100:: Note: Use variable NAMES in the CALL, not values (pass "by reference")
    95101
    96 SET _UCase=A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
    97 SET _LCase=a b c d e f g h i j k l m n o p q r s t u v w x y z
    98 SET _Lib_UCase_Tmp=!%1!
    99 IF /I "%0"==":UCase" SET _Abet=%_UCase%
    100 IF /I "%0"==":LCase" SET _Abet=%_LCase%
    101 FOR %%Z IN (%_Abet%) DO (
    102     SET _Lib_UCase_Tmp=!_Lib_UCase_Tmp:%%Z=%%Z!
     102set _UCase=A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
     103set _LCase=a b c d e f g h i j k l m n o p q r s t u v w x y z
     104set _Lib_UCase_Tmp=!%1!
     105if /I "%0"==":UCase" (
     106    set _Abet=%_UCase%
    103107)
    104 SET %2=%_Lib_UCase_Tmp%
    105 GOTO:EOF
     108if /I "%0"==":LCase" (
     109    set _Abet=%_LCase%
     110)
     111for %%Z in (%_Abet%) do (
     112    set _Lib_UCase_Tmp=!_Lib_UCase_Tmp:%%Z=%%Z!
     113)
     114set %2=%_Lib_UCase_Tmp%
     115goto:EOF
Note: See TracChangeset for help on using the changeset viewer.