[pve-devel] [PATCHV4 4/4] Use git archive instead of rsync to build tarball.

Wolfgang Link w.link at proxmox.com
Mon Sep 5 11:58:53 CEST 2016


---
 Makefile | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index f4eae05..e7c41a5 100644
--- a/Makefile
+++ b/Makefile
@@ -27,10 +27,7 @@ ${DEB} deb: ${SDSRC}
 ${SDSRC} download:
 	rm -rf ${SDDIR} sheepdog.git
 	git clone git://github.com/sheepdog/sheepdog.git -b v1.0 sheepdog.git --depth 1
-	cd sheepdog.git; git checkout -b local v1.0
-	rsync -a --exclude .git --exclude .gitignore sheepdog.git/ ${SDDIR}
-	tar czf ${SDSRC}.tmp  ${SDDIR}
-	rm -rf ${SDDIR}
+	cd sheepdog.git; git archive --format=tar.gz -o ../${SDSRC}.tmp v1.0 --prefix=${SDDIR}/
 	mv ${SDSRC}.tmp ${SDSRC}
 
 .PHONY: upload
-- 
2.1.4





More information about the pve-devel mailing list