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