blob: 525c26e341c12939465cc910912ebee15290855e [file] [log] [blame]
Emeric Vigier2f625822012-08-06 11:09:52 -04001@echo off
2rem bootstrap framework when no pre-packaged setup.exe is available
3rem we use a default configuration and copy the "debug" version of libs
4
5echo Bootstrapping Framework from Debugging Libraries
6
7if exist "C:\Program Files\GNU Telephony" goto common
8
9echo Creating C:\Program Files\GNU Telephony...
10
11mkdir "C:\Program Files\GNU Telephony"
12mkdir "C:\Program Files\GNU Telephony\CAPE Framework"
13mkdir "C:\Program Files\GNU Telephony\CAPE Framework\Include"
14mkdir "C:\Program Files\GNU Telephony\CAPE Framework\Include\cc++"
15mkdir "C:\Program Files\GNU Telephony\CAPE Framework\Compat"
16mkdir "C:\Program Files\GNU Telephony\CAPE Framework\Import"
17
18:common
19if exist "C:\Program Files\Common Files\CAPE Framework" goto include
20
21echo Creating C:\Program Files\Common Files\CAPE Framework...
22
23mkdir "C:\Program Files\Common Files\CAPE Framework"
24mkdir "C:\Program Files\Common Files\CAPE Framework\Common"
25mkdir "C:\Program Files\Common Files\CAPE Framework\Compat"
26
27:include
28
29echo Copying include files...
30
31copy /y ..\include\cc++\*.h "C:\Program Files\GNU Telephony\CAPE Framework\Include\cc++" >nul
32copy /y cc++\config.h "C:\Program Files\GNU Telephony\CAPE Framework\Include\cc++" >nul
33copy /y ..\src\getopt.h "C:\Program Files\GNU Telephony\CAPE Framework\Include" >nul
34
35if not exist debug6\ccext2.lib goto import
36
37echo Copying compat import libs...
38copy /y debug6\cc*.lib "C:\Program Files\GNU Telephony\CAPE Framework\Compat" >nul
39
40:import
41
42if not exist debug\ccext2.lib goto compat
43
44echo Copying common import libs...
45
46copy /y debug\cc*.lib "C:\Program Files\GNU Telephony\CAPE Framework\Import" >nul
47
48:compat
49
50if not exist debug6\ccext2.dll goto runtime
51
52echo Copying compat runtime files...
53
54copy /y debug6\cc*.dll "C:\Program Files\Common Files\CAPE Framework\Compat" >nul
55
56:runtime
57
58if not exist debug\ccext2.dll goto finish
59
60echo Copying common runtime files...
61
62copy /y debug\cc*.dll "C:\Program Files\Common Files\CAPE Framework\Common" >nul
63
64:finish
65
66echo Updating registry...
67
68regedit /s common.reg
69