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