Skip to content

Commit 836c9c9

Browse files
committed
[gdb] Put the resulting deb in the current directory
Unfortunately this will still put a .changes file in the parent directory and I don't know how to make it not do that. Also renames the resulting deb to "jsdbg-gdb.deb" (and ensures that the package name is changed to that)
1 parent 31078db commit 836c9c9

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ all:
33

44
deb: clean
55
@echo '*** See debian/README.source for more information and help with troubleshoting. ***'
6-
dpkg-buildpackage -us -uc
6+
@# We can't use --filename=jsdbg-gdb.deb in BUILDPACKAGE_OPTS because too many steps
7+
@# depend on keeping the filename as-is. So we'll just rename it afterwards.
8+
BUILDPACKAGE_OPTS="--destdir=." dpkg-buildpackage -us -uc --build=binary --buildinfo-option=-u. --changes-option=-u.
9+
mv jsdbg-gdb_*.deb jsdbg-gdb.deb
710

811
%:
912
$(MAKE) -C server/JsDbg.Gdb $@

debian/control

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ Homepage: https://github.com/MicrosoftEdge/JsDbg
88
Vcs-Git: https://github.com/MicrosoftEdge/JsDbg
99
Vcs-Browser: https://github.com/MicrosoftEdge/JsDbg
1010

11-
Package: jsdbg
11+
Package: jsdbg-gdb
1212
Architecture: any
1313
Depends: ${misc:Depends}, ${shlibs:Depends}, dotnet-runtime-2.2
1414
Recommends: gdb
15+
Replaces: jsdbg
16+
Breaks: jsdbg
1517
Description: Browser-based debugger extensions
1618
Extends GDB with a `jsdbg' command that lets you visualize datastructures
1719
in a browser and can be extended using JavaScript.

debian/rules

+2
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ export RESTOREFLAGS := -s /usr/share/dotnet/sdk/NuGetFallbackFolder
1313
override_dh_auto_install:
1414
dh_auto_install -- PREFIX=/usr
1515

16+
override_dh_builddeb:
17+
dh_builddeb $(BUILDPACKAGE_OPTS)

0 commit comments

Comments
 (0)