]> git.proxmox.com Git - proxmox-backup.git/commitdiff
Makefile: add upload target
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 13 Dec 2019 09:35:43 +0000 (10:35 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 13 Dec 2019 13:15:07 +0000 (14:15 +0100)
Makefile

index 55c599e4ff7eb35bbed5896be1cfb2326c270a1e..634745b8b7fbffd65bc6102c6764e5ad799f25c6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -113,3 +113,9 @@ install: $(COMPILED_BINS)
            install -m755 $(COMPILEDIR)/$(i) $(DESTDIR)$(LIBEXECDIR)/proxmox-backup/ ;)
        $(MAKE) -C www install
        $(MAKE) -C docs install
+
+.PHONY: upload
+upload: ${DEBS}
+       # check if working directory is clean
+       git diff --exit-code --stat && git diff --exit-code --stat --staged
+       tar cf - ${DEBS} | ssh -X repoman@repo.proxmox.com upload --product pbs --dist buster