]> git.proxmox.com Git - pve-qemu-kvm.git/blobdiff - Makefile
bump version to 2.6.1-4
[pve-qemu-kvm.git] / Makefile
index 9452c09835f11cc6d7647ce2fa21c6206686a3e2..8eb269443c80758daadc35b4bf2725a00921628b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,15 @@
 RELEASE=4.2
 
 # also update debian/changelog
-KVMVER=2.6
-KVMPKGREL=1
+KVMVER=2.6.1
+KVMPKGREL=4
 
 KVMPACKAGE=pve-qemu-kvm
 KVMDIR=qemu-kvm
 KVMSRC=${KVMDIR}-src.tar.gz
 
 ARCH=amd64
-GITVERSION:=$(shell cat .git/refs/heads/master)
+GITVERSION:=$(shell git rev-parse master)
 
 DEBS=                                                  \
 ${KVMPACKAGE}-dbg_${KVMVER}-${KVMPKGREL}_${ARCH}.deb   \
@@ -21,7 +21,7 @@ all: ${DEBS}
 .PHONY: download
 download:
        rm -rf ${KVMDIR} ${KVMSRC}
-       git clone --depth=1 git://git.qemu-project.org/qemu.git -b v2.6.0 ${KVMDIR}
+       git clone --depth=1 git://git.qemu-project.org/qemu.git -b v${KVMVER} ${KVMDIR}
        tar czf ${KVMSRC} --exclude CVS --exclude .git --exclude .svn ${KVMDIR}
 
 .PHONY: deb
@@ -38,14 +38,7 @@ deb ${DEBS} kvm: ${KVMSRC}
 
 .PHONY: upload
 upload: ${DEBS} ${KVMDIR}-src.tar.gz
-       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw 
-       mkdir -p /pve/${RELEASE}/extra
-       rm -rf /pve/${RELEASE}/extra/Packages*
-       rm -rf /pve/${RELEASE}/extra/${KVMPACKAGE}_*.deb
-       rm -rf /pve/${RELEASE}/extra/${KVMPACKAGE}-dbg_*.deb
-       cp ${DEBS} /pve/${RELEASE}/extra
-       cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
-       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
+       tar cf - ${DEBS} | ssh repoman@repo.proxmox.com upload
 
 .PHONY: distclean
 distclean: clean