]> git.proxmox.com Git - dlm.git/commitdiff
add upload target
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 27 Feb 2015 09:36:09 +0000 (10:36 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 27 Feb 2015 09:36:09 +0000 (10:36 +0100)
Makefile

index 55d8442f19466cd57fe3051f21da5fba74ad9479..add7818541bded6d7ef40b590b26a7d33c3f7648 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -28,11 +28,21 @@ deb ${DEBS}: ${DLMSRC}
        cd ${DLMDIR}; dpkg-buildpackage -b -uc -us
        lintian ${DEBS}
 
-
 download:
        rm -f ${DLMSRC}
        wget https://git.fedorahosted.org/cgit/dlm.git/snapshot/${DLMSRC}
 
+.PHONY: upload
+upload: ${DEBS}
+       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw 
+       mkdir -p /pve/${RELEASE}/extra
+       rm -f /pve/${RELEASE}/extra/libdlm3_*.deb
+       rm -f /pve/${RELEASE}/extra/libdlm-dev_*.deb
+       rm -f /pve/${RELEASE}/extra/Packages*
+       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