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

Re: Enabling uupdate to simply remove files from upstream source



Hi!

On Sun, 2012-08-19 at 10:35:17 -0700, Russ Allbery wrote:
> get-orig-source:
> 	git archive --remote='$(REPO)' --prefix='openafs_$(DEBVERS).orig/' \
> 	    --format=tar '$(TAG)' | tar xf -
> 	rm -r openafs_$(DEBVERS).orig/src/WINNT
> 	tar cf openafs_$(DEBVERS).orig.tar openafs_$(DEBVERS).orig
> 	rm -r openafs_$(DEBVERS).orig
> 	gzip -9 openafs_$(DEBVERS).orig.tar

Just a small off-topic tangent :), but this could be slightly optimized
with something like (untested):

	git archive --remote='$(REPO)' --prefix='openafs_$(DEBVERS).orig/' \
	    --format=tar '$(TAG)' | \
	    tar --delete openafs_$(DEBVERS).orig/src/WINNT | \
	    gzip -9 > openafs_$(DEBVERS).orig.tar.gz

regards,
guillem


Reply to: