1 Sub Main( Opt, AppKey )
\r
2 Dim w_:Set w_=AppKey.NewWritable( "." ).Enable()
\r
4 Dim mxp : Set mxp = new Mxp_Proj
\r
5 Setting_addRepository mxp, "Types"
\r
6 mxp.AddWorkFile "clib.h", "CHead_Type"
\r
7 mxp.AddWorkFile "clib.c", "C_Type"
\r
8 mxp.SetProj "CheckEnglishOnly", "Mxp_ProjType_VisualStudioWin32Console"
\r
10 Setting_addRepository mxp, "clib"
\r
12 StrMatchKey_clib.Uses
\r
16 StrT_Edit2.Uses '// StrT_changeToXmlAttr
\r
21 Error4_str_stdio.Uses
\r
36 '--- start of vbslib include ------------------------------------------------------
\r
38 '//
\82±
\82±
\82Ì
\93à
\95\94\82©
\82ç Main
\8aÖ
\90\94\82ð
\8cÄ
\82Ñ
\8fo
\82µ
\82Ä
\82¢
\82Ü
\82·
\81B
\r
39 '//
\82Ü
\82½
\81Ascriptlib
\83t
\83H
\83\8b\83_
\81[
\82ð
\92T
\82µ
\82Ä
\81Avbslib
\82ð
\83C
\83\93\83N
\83\8b\81[
\83h
\82µ
\82Ä
\82¢
\82Ü
\82·
\r
41 '// vbslib include is provided under 3-clause BSD license.
\r
42 '// Copyright (C) Sofrware Design Gallery "Sage Plaisir 21" All Rights Reserved.
\r
44 Dim g_Vers : If IsEmpty( g_Vers ) Then
\r
45 Set g_Vers = CreateObject("Scripting.Dictionary") : g_Vers("vbslib") = 99.99
\r
46 Dim g_debug, g_debug_params, g_admin, g_vbslib_path, g_CommandPrompt, g_fs, g_sh, g_AppKey
\r
47 Dim g_MainPath, g_SrcPath, g_f, g_include_path, g_i, g_debug_tree, g_debug_process, g_is_compile_debug
\r
49 g_SrcPath = WScript.ScriptFullName : g_MainPath = g_SrcPath
\r
50 SetupVbslibParameters
\r
51 Set g_fs = CreateObject( "Scripting.FileSystemObject" )
\r
52 Set g_sh = WScript.CreateObject("WScript.Shell") : g_f = g_sh.CurrentDirectory
\r
53 g_sh.CurrentDirectory = g_fs.GetParentFolderName( WScript.ScriptFullName )
\r
54 For g_i = 20 To 1 Step -1 : If g_fs.FileExists(g_vbslib_path) Then Exit For
\r
55 g_vbslib_path = "..\" + g_vbslib_path : Next
\r
56 If g_fs.FileExists(g_vbslib_path) Then g_vbslib_path = g_fs.GetAbsolutePathName( g_vbslib_path )
\r
57 g_sh.CurrentDirectory = g_f
\r
58 If g_i=0 Then WScript.Echo "Not found " + g_fs.GetFileName( g_vbslib_path ) +vbCR+vbLF+_
\r
59 "Let's download vbslib and Copy scriptlib folder." : Stop : WScript.Quit 1
\r
60 Set g_f = g_fs.OpenTextFile( g_vbslib_path,,,-2 ): Execute g_f.ReadAll() : g_f = Empty
\r
61 If ResumePush Then On Error Resume Next
\r
63 ResumePop : On Error GoTo 0
\r
65 '---------------------------------------------------------------------------------
\r
67 Sub SetupDebugTools()
\r
69 SetBreakByFName Empty
\r
70 SetStartSectionTree ""
\r
73 Sub SetupVbslibParameters()
\r
74 '--- start of parameters for vbslib include -------------------------------
\r
75 g_Vers("vbslib") = 99.99
\r
76 '// g_Vers("OldMain") = 1
\r
77 g_vbslib_path = "scriptlib\vbs_inc.vbs"
\r
80 '--- end of parameters for vbslib include ---------------------------------
\r
82 '--- end of vbslib include --------------------------------------------------------
\r