]> git.proxmox.com Git - pve-cluster.git/blobdiff - Makefile
bump version to 4.0-47
[pve-cluster.git] / Makefile
index aede8ab285870441c93b7edaf91625a05d398acc..eaf1d9c9e4385d9d9301da12f2f539a595cc061a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
-RELEASE=4.0
+RELEASE=4.2
 
 PACKAGE=pve-cluster
 PKGVER=4.0
-PKGREL=27
+PKGREL=47
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 GITVERSION:=$(shell cat .git/refs/heads/master)
@@ -21,8 +21,9 @@ cpgtest: cpgtest.c
 dinstall: ${DEB}
        dpkg -i ${DEB} 
 
-.PHONY: ${DEB} ${DBG_DEB}
-${DEB} ${DBG_DEB}:
+.PHONY: deb
+deb ${DEB} ${DBG_DEB}:
+       rm -f *.deb
        rm -rf build
        rsync -a --exclude .svn data/ build
        cp -a debian build/debian
@@ -34,13 +35,7 @@ ${DEB} ${DBG_DEB}:
 
 .PHONY: upload
 upload: ${DEB} ${DBG_DEB}
-       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw 
-       mkdir -p /pve/${RELEASE}/extra
-       rm -f /pve/${RELEASE}/extra/${PACKAGE}*.deb
-       rm -f /pve/${RELEASE}/extra/Packages*
-       cp ${DEB} ${DBG_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} ${DBG_DEB}| ssh repoman@repo.proxmox.com upload
 
 .PHONY: clean
 clean: