threads / patch / 1869

patch[COGITO] Add .deb build support to Makefile

Subject: [PATCH][COGITO] Add .deb build support to Makefile

## tl;dr

3 messages between Sep 20, 2005 and Sep 20, 2005. Diffs are folded; open one to read it.

replies: 2people: 2as markdown or json

Stefhen Hovland· Sep 20, 2005, 00:23 UTC · lore

Attached is a simple patch adding support to cogito for "make deb". Please use if useful or let me know if this patch is offbase..

Thanks, Stefhen

Show changes to Makefile +6 −0
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -125,6 +125,12 @@ dist: cogito.spec
 rpm: dist
 	rpmbuild -ta $(GIT_TARNAME).tar.gz
 
+deb: dist
+	rm -rf $(GIT_TARNAME)
+	tar zxf $(GIT_TARNAME).tar.gz
+	dpkg-source -b $(GIT_TARNAME)
+	cd $(GIT_TARNAME) && fakeroot debian/rules binary
+
 Portfile: Portfile.in $(VERSION) dist
 	sed -e 's/@@VERSION@@/$(shell cat $(VERSION) | cut -d"-" -f2)/g' < Portfile.in > Portfile
 	echo "checksums md5 " `md5sum $(GIT_TARNAME).tar.gz | cut -d ' ' -f 1` >> Portfile
Petr Baudis· Sep 20, 2005, 00:31 UTC · re: Stefhen Hovland · lore

Re: [PATCH][COGITO] Add .deb build support to Makefile

Dear diary, on Tue, Sep 20, 2005 at 02:23:56AM CEST, I got a letter where Stefhen Hovland <stefhen.hovland@gmail.com> told me that...

> Attached is a simple patch adding support to cogito for "make deb".
> Please use if useful or let me know if this patch is offbase..

Thanks, applied. I just changed it so that the temporary directory is removed after fakeroot completes successfully.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.
Stefhen Hovland· Sep 20, 2005, 00:48 UTC · re: Petr Baudis · lore

Re: [PATCH][COGITO] Add .deb build support to Makefile

On 9/19/05, Petr Baudis <pasky@ucw.cz> wrote:
Show 8 quoted lines
> Dear diary, on Tue, Sep 20, 2005 at 02:23:56AM CEST, I got a letter
> where Stefhen Hovland <stefhen.hovland@gmail.com> told me that...
> > Attached is a simple patch adding support to cogito for "make deb".
> > Please use if useful or let me know if this patch is offbase..
> 
> Thanks, applied. I just changed it so that the temporary directory is
> removed after fakeroot completes successfully.
> 
Great thanks.

Also I noticed the variable $(GIT_TARNAME) in the Makefile, it looks like it was probably just copied from the git Makefile. Wouldn't this make more sense just from a non confusion/cleanliness standpoint to be called $(COGITO_TARNAME), or is this not worth bothering with? If so I can just submit a quick diff.

Thanks, Stefhen

← back to recent threads