]> git.proxmox.com Git - libxdgmime-perl.git/commitdiff
Makefile: fix upload target for stretch, add dinstall target
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 8 Mar 2017 15:49:42 +0000 (16:49 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 8 Mar 2017 15:49:42 +0000 (16:49 +0100)
Makefile

index 6187ea90cb99b1a576fa45c0385d20cac8b90347..9c689b2f1c24e48cc7791ba6e17dcce6f02b3759 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,3 @@
-RELEASE=4.0
-
 OPKGNAME=Xdgmime
 DEB = libxdgmime-perl_0.01-3_amd64.deb
 
@@ -10,18 +8,17 @@ ${DEB}: ${OPKGNAME}/Xdgmime.xs
        cd build; dpkg-buildpackage -b -us -uc -rfakeroot
        lintian ${DEB}
 
-.phony: upload
+.PHONY: upload
 upload: ${DEB}
-       umount /proxmox/${RELEASE}; mount /proxmox/${RELEASE} -o rw 
-       mkdir -p /proxmox/${RELEASE}/extra
-       rm -rf /proxmox/${RELEASE}/extra/libxdgmime-perl_*.deb
-       cp ${DEB} /proxmox/${RELEASE}/extra
-       cd /proxmox/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
-       umount /proxmox/${RELEASE}; mount /proxmox/${RELEASE} -o ro 
+       tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch
 
 
 CLEANFILES = *~ debian/*~ *.deb build libxdgmime-perl_*
 
-.phony: clean
+.PHONY: clean
 clean: 
        rm -rf ${CLEANFILES}
+
+.PHONY: dinstall
+dinstall: ${DEB}
+       dpkg -i ${DEB}