File: rules

package info (click to toggle)
nunit 2.6.4+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 13,092 kB
  • ctags: 14,310
  • sloc: cs: 87,766; xml: 5,858; cpp: 512; sh: 198; makefile: 48; ansic: 8
file content (60 lines) | stat: -rwxr-xr-x 2,837 bytes parent folder | download
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
#!/usr/bin/make -f
export DH_VERBOSE=1
DEB_CLI_ABI_VERSION = 2.6.3
DEB_CLI_API_VERSION = 2.6.3

%:
	dh $@ --with cli

override_dh_auto_build:
	xbuild /property:Configuration=Debug ./src/NUnitCore/core/nunit.core.dll.csproj
	xbuild /property:Configuration=Debug ./src/NUnitCore/interfaces/nunit.core.interfaces.dll.csproj
	xbuild /property:Configuration=Debug ./src/NUnitFramework/framework/nunit.framework.dll.csproj
	xbuild /property:Configuration=Debug ./src/NUnitMocks/mocks/nunit.mocks.csproj
	xbuild /property:Configuration=Debug ./src/ClientUtilities/util/nunit.util.dll.csproj

	xbuild /property:Configuration=Debug ./src/ConsoleRunner/nunit-console/nunit-console.csproj
	xbuild /property:Configuration=Debug ./src/ConsoleRunner/nunit-console-exe/nunit-console.exe.csproj

	xbuild /property:Configuration=Debug ./src/GuiRunner/nunit-gui/nunit-gui.csproj
	xbuild /property:Configuration=Debug ./src/GuiComponents/UiKit/nunit.uikit.dll.csproj
	xbuild /property:Configuration=Debug ./src/GuiException/UiException/nunit.uiexception.dll.csproj
	xbuild /property:Configuration=Debug ./src/GuiRunner/nunit-gui-exe/nunit-gui.exe.csproj

	rm -rf monodocer;
	mdoc update -i ./bin/Debug/framework/nunit.framework.xml \
	  -o monodocer bin/Debug/framework/nunit.framework.dll;
	mdoc assemble -o nunit.framework monodocer;

	rm -rf monodocer;
	mdoc update -i ./bin/Debug/lib/nunit.core.xml \
	  -o monodocer bin/Debug/lib/nunit.core.dll;
	mdoc assemble -o nunit.core monodocer;

	XDG_CONFIG_HOME=debian/ nuget pack nuget/nunit.nuspec -Verbose -NoPackageAnalysis -NoDefaultExcludes
	XDG_CONFIG_HOME=debian/ nuget pack nuget/nunit.mocks.nuspec -Verbose -NoPackageAnalysis -NoDefaultExcludes
	XDG_CONFIG_HOME=debian/ nuget pack nuget/nunit.runners.nuspec -Verbose -NoPackageAnalysis -NoDefaultExcludes

override_dh_install:
	install -D -m 755 debian/nunit-console.sh debian/nunit-console/usr/bin/nunit-console
	install -D -m 755 debian/nunit-gui.sh debian/nunit-gui/usr/bin/nunit-gui
	dh_install
	cp -a src/ConsoleRunner/nunit-console-exe/App.config debian/nunit-console/usr/lib/nunit/nunit-console.exe.config
	cp -a src/GuiRunner/nunit-gui-exe/App.config debian/nunit-gui/usr/lib/nunit/nunit.exe.config

override_dh_make_clilibs:
	dh_makeclilibs -m $(DEB_CLI_API_VERSION)

override_dh_fixperms:
	dh_fixperms
	find debian/ -name "*.dll" | xargs chmod -x

upstream_version=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-\+]+)+(\+dfsg)*.*,\1,p')
get-orig-source::
	uscan --force-download --destdir=. --download-version=$(upstream_version)
	rm -rf nunit-$(upstream_version)/
	unzip NUnit-$(upstream_version)-src.zip
	find NUnit-$(upstream_version)/ -name "*.exe" -delete
	find NUnit-$(upstream_version)/ -name "*.dll" -delete
	tar cfz nunit_$(upstream_version)+dfsg.orig.tar.gz NUnit-$(upstream_version)/
	rm -rf NUnit-$(upstream_version)/