[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [debian-edu-commits] debian-edu/ 08/09: debian/rules: Provide get-orig-source rule that builds an orig tarball from the package folder itself (excluding the debian/ directory).



Hi Holger,

On  Mo 06 Okt 2014 01:14:26 CEST, Holger Levsen wrote:

Hi Mike,

great that you worked on the package and added this make-orig-source target!

just a question...

On Montag, 6. Oktober 2014, Mike Gabriel wrote:
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,9 @@
 #!/usr/bin/make -f

+PKD   = $(word 1,$(abspath $(dir $(MAKEFILE_LIST))))
+PKG   = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep
^Source))
+UVER  = $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl
-ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};') +

care to explaint those three variables? whats PKD? whats UVER? ah.
UPSTREAM_VERSION.

+get-orig-source: clean
+	mkdir -p $(PKG)-$(UVER)/
+	rsync -av --delete --exclude=debian/ --exclude=$(PKG)-$(UVER)/ *
$(PKG)-$(UVER)/ +	find "$(PKG)-$(UVER)" -xdev -print | sort \
+	    | tar -caf "../$(PKG)_$(UVER).orig.tar.gz" -T- --owner=root
--group=root --mode=a+rX \ +	    && $(RM) -r "$(PKG)-$(UVER)"


see https://wiki.debian.org/onlyjob/get-orig-source for reference... (most of it taken from there).

Mike

--

DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb

Attachment: pgpAF1rlMbiLh.pgp
Description: Digitale PGP-Signatur


Reply to: