]> git.proxmox.com Git - vzquota.git/commitdiff
add upload make target
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 28 Sep 2012 06:32:58 +0000 (08:32 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 28 Sep 2012 06:32:58 +0000 (08:32 +0200)
Makefile

index d5e7157e919fe4fed8e9e16dfd97c965ba037529..8e44951b2af20452421b1dc3cb71912135f077ce 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,5 +22,20 @@ ${DEB}: ${SRC}
        lintian ${DEB}
 
 
        lintian ${DEB}
 
 
+.PHONY: upload
+upload: ${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} /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
+
+.PHONY: distclean
+distclean: clean
+
+.PHONY: clean
 clean:
 clean:
-       rm -rf *~ debian/*~ ${SRCDIR} ${PACKAGE}_*.deb ${PACKAGE}_*.changes
\ No newline at end of file
+       rm -rf *~ debian/*~ ${SRCDIR} ${PACKAGE}_*.deb ${PACKAGE}_*.changes
+