]> git.proxmox.com Git - pve-ha-manager.git/commitdiff
add upload target
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 13 Mar 2015 09:54:32 +0000 (10:54 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 13 Mar 2015 09:54:32 +0000 (10:54 +0100)
Makefile

index 52f4e3f9e7229d44c733a1351559634415ee7a7c..f848c6084129d39dc2b4e58ee0ef14d977bc5343 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -51,3 +51,14 @@ clean:
 .PHONY: distclean
 distclean: clean
 
+.PHONY: upload
+upload: ${DEB} ${SIMDEB}
+       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/${SIMPACKAGE}_*.deb
+       rm -f /pve/${RELEASE}/extra/Packages*
+       cp ${DEB} ${SIMDEB} /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
+