mirror of
https://git.proxmox.com/git/proxmox-perl-rs
synced 2025-05-24 04:40:27 +00:00
buildsys: add common-upload target
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
c078098160
commit
8fe90d189c
20
Makefile
20
Makefile
@ -20,6 +20,14 @@ define package_template
|
|||||||
>Proxmox/Lib/$(1).pm
|
>Proxmox/Lib/$(1).pm
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define upload_template
|
||||||
|
cd build; \
|
||||||
|
dcmd --deb lib$(1)-rs-perl*.changes \
|
||||||
|
| grep -v '.changes$$' \
|
||||||
|
| tar -cf "$@.tar" -T-; \
|
||||||
|
cat "$@.tar" | ssh -X repoman@repo.proxmox.com upload --product $(2) --dist bullseye
|
||||||
|
endef
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all:
|
all:
|
||||||
ifeq ($(BUILD_TARGET), pve)
|
ifeq ($(BUILD_TARGET), pve)
|
||||||
@ -87,12 +95,12 @@ common-deb: build
|
|||||||
cd ./build/common-pkg && dpkg-buildpackage -b -uc -us
|
cd ./build/common-pkg && dpkg-buildpackage -b -uc -us
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
%-upload: %-deb
|
pve-upload: pve-deb
|
||||||
cd build; \
|
$(call upload_template,pve,pve)
|
||||||
dcmd --deb lib$*-rs-perl*.changes \
|
pmg-upload: pmg-deb
|
||||||
| grep -v '.changes$$' \
|
$(call upload_template,pmg,pmg)
|
||||||
| tar -cf "$@.tar" -T-; \
|
common-upload: common-deb
|
||||||
cat "$@.tar" | ssh -X repoman@repo.proxmox.com upload --product $* --dist bullseye
|
$(call upload_template,proxmox,pve\,pmg)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
Loading…
Reference in New Issue
Block a user