]> git.proxmox.com Git - usb-redir.git/commitdiff
add upload target master
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 19 Jul 2013 05:31:20 +0000 (07:31 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 19 Jul 2013 05:31:20 +0000 (07:31 +0200)
Makefile

index 72959d77ca755b64db279053d74a62825ac9719d..08a4bb20e50a31abd6c50c24d20caa1b06f8d781 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -34,6 +34,18 @@ download:
        cd ${PKGDIR}; ./autogen.sh; make dist
        mv ${PKGDIR}/${PKGSRC} ${PKGSRC}
 
+
+.PHONY: upload
+upload: ${DEBS}
+       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
+       mkdir -p /pve/${RELEASE}/extra
+       rm -f /pve/${RELEASE}/extra/Packages*
+       rm -f /pve/${RELEASE}/extra/${PACKAGE}1_*.deb
+       rm -f /pve/${RELEASE}/extra/${PACKAGE}-dev_*.deb
+       cp ${DEBS} /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
+
 distclean: clean
 
 .PHONY: clean