]> git.proxmox.com Git - pve-cluster.git/blobdiff - Makefile
new helper initialize_cert_cache()
[pve-cluster.git] / Makefile
index 144cd6e7a62da82d817eb7b6a456b9b2e16e1d7c..13149c290b99ea9373f5e4f30e9bf2a6c8d2debd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,6 @@
-RELEASE=4.1
-
 PACKAGE=pve-cluster
 PKGVER=4.0
-PKGREL=32
+PKGREL=47
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 GITVERSION:=$(shell cat .git/refs/heads/master)
@@ -21,8 +19,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 +33,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: