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)" cheers, Holger
Attachment:
signature.asc
Description: This is a digitally signed message part.