X-Git-Url: https://git.proxmox.com/?p=pve-sheepdog.git;a=blobdiff_plain;f=Makefile;h=8a809f33bbd560cf32efa9c2060ff4b00f793dcc;hp=9b82e61237cfb5d0a04a58c5917691038f39bd6f;hb=HEAD;hpb=18eae05ccdd73325a8ba3faabce409d1bbaf859d diff --git a/Makefile b/Makefile index 9b82e61..8a809f3 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,6 @@ -RELEASE=4.2 - PACKAGE=pve-sheepdog PKGREL=1 -SDVER=1.0.0 +SDVER=1.0.2 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) GITVERSION:=$(shell cat .git/refs/heads/master) @@ -26,21 +24,13 @@ ${DEB} deb: ${SDSRC} .PHONY: download ${SDSRC} download: rm -rf ${SDDIR} sheepdog.git - git clone git://github.com/sheepdog/sheepdog.git -b v1.0 sheepdog.git - rsync -a --exclude .git --exclude .gitignore sheepdog.git/ ${SDDIR} - tar czf ${SDSRC}.tmp ${SDDIR} - rm -rf ${SDDIR} + git clone git://github.com/sheepdog/sheepdog.git -b v1.0.2_rc0 sheepdog.git + cd sheepdog.git; git archive --format=tar.gz -o ../${SDSRC}.tmp v1.0 --prefix=${SDDIR}/ mv ${SDSRC}.tmp ${SDSRC} .PHONY: upload upload: ${DEB} - umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw - mkdir -p /pve/${RELEASE}/extra - rm -f /pve/${RELEASE}/extra/pve-sheepdog*.deb - rm -f /pve/${RELEASE}/extra/Packages* - cp ${DEB} /pve/${RELEASE}/extra - cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz - umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro + tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch clean: distclean: clean @@ -48,7 +38,7 @@ distclean: clean .PHONY: clean clean: - rm -rf *~ debian/*~ *.deb *.changes *.dsc ${SDDIR} ${SDSRC}.tmp + rm -rf *~ debian/*~ *.deb *.changes *.buildinfo *.dsc ${SDDIR} ${SDSRC}.tmp .PHONY: dinstall dinstall: ${DEB}