File: Install.bat

package info (click to toggle)
nunit 2.4.7%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 7,672 kB
  • ctags: 9,598
  • sloc: cs: 54,034; cpp: 553; xml: 101; sh: 97; makefile: 50; ansic: 8
file content (40 lines) | stat: -rw-r--r-- 1,228 bytes parent folder | download | duplicates (2)
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
@echo off
Rem This is called by the post-build event. You may modify it to copy the addin
Rem to whatever locations you like. As provided, it copies it to a number of
Rem directories relative to the target, provided they exist.

setlocal
set UP6= ..\..\..\..\..\..

Rem See whether we are doing a production or development install
if exist %UP6%\bin goto prod
if exist %UP6%\src goto dev
echo No install locations found - install %1 manually
goto end

:prod
Rem For production install, ensure we have an addins directory
if not exist %UP6%\bin\addins mkdir %UP6%\bin\addins
copy %1 %UP6%\bin\addins
echo Installed %1 in bin\addins directory
goto end

:dev
Rem For development installs, try each nunit-gui-exe output directory and
Rem use those that have an addins sub-directory
call :try %1 Debug
call :try %1 Debug2005
call :try %1 Release
call :try %1 Release2005

goto end

:try
if not exist %UP6%\src\GuiRunner\nunit-gui-exe\bin\%2 goto end
if exist %UP6%\src\GuiRunner\nunit-gui-exe\bin\%2\addins goto try2
md %UP6%\src\GuiRunner\nunit-gui-exe\bin\%2\addins
:try2
copy %1 %UP6%\src\GuiRunner\nunit-gui-exe\bin\%2\addins
echo Installed %1 in nunit-gui-exe\bin\%2\addins directory

:end