]> git.proxmox.com Git - ceph.git/commitdiff
buildsys: leave .git in tar.gz
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 21 Mar 2017 08:55:21 +0000 (09:55 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 21 Mar 2017 08:57:35 +0000 (09:57 +0100)
but do a shallow clone and exclude submodule history

ceph gets the version string from "git describe" output..

Makefile
ceph.tar.gz

index 54b8e754d14933a06115aede5f2116038e5ffb60..e0fca5fc79d5f2c482bd6fa4fa859c97869b03eb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -98,9 +98,11 @@ ${DEBS}: ${SRC} patches
 .PHONY: download
 download ${SRC}:
        rm -rf ${SRC} ${SRCDIR}
-       git clone -b v${VER} https://github.com/ceph/ceph.git ${SRCDIR}
+       git clone -b v${VER} --depth 1 https://github.com/ceph/ceph.git ${SRCDIR}
        cd ${SRCDIR}; for module in ${SUBMODULES}; do git submodule update --init $${module}; done
-       tar czf ${SRC} --exclude .git ${SRCDIR}
+       # "ceph version" is derived from "git describe"
+       # only drop module history to save space
+       tar czf ${SRC} --exclude ".git/modules" ${SRCDIR}
 
 .PHONY: upload
 upload: ${DEBS}
index a0246e254bab5f203d7e494c7bf8b46ad39e9d6f..113f4a2ab9fcc6d81e6dc97e0972c79176330b0f 100644 (file)
Binary files a/ceph.tar.gz and b/ceph.tar.gz differ