]> git.proxmox.com Git - perlmod.git/blobdiff - Makefile
upload command pattern fixup
[perlmod.git] / Makefile
index 54bde5f28a6fd37096eecec4100d4147c62bb01e..8f6863d12c733550313e29e662234fa9a648b3eb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,12 @@ dinstall:
        $(MAKE) deb
        sudo -k dpkg -i build/librust-*.deb
 
+perlmod-bin-deb:
+       mkdir build || true
+       rm -rf build/perlmod-bin-deb
+       git archive --format=tar HEAD perlmod-bin | tar -C build -xf -
+       cd build/perlmod-bin && dpkg-buildpackage --no-sign -b
+
 %-deb:
        ./build.sh $*
        touch $@
@@ -28,6 +34,10 @@ builddeps: $(foreach c,$(CRATES), $c-builddeps)
 .PHONY: check
 check:
        cargo test
+       cargo build
+       perl test.pl >out.test
+       if diff -up out.test test.pl.expected; then rm out.test; \
+       else echo "Test output mismatch between out.test and test.pl.expected"; fi
 
 # Prints a diff between the current code and the one rustfmt would produce
 .PHONY: fmt
@@ -50,7 +60,7 @@ update:
 
 %-upload: %-deb
        cd build; \
-           dcmd --deb rust-$*_*.changes \
+           dcmd --deb ./*$*_*.changes \
            | grep -v '.changes$$' \
            | tar -cf- -T- \
-           | ssh -X repoman@repo.proxmox.com upload --product devel --dist bullseye
+           | ssh -X repoman@repo.proxmox.com upload --product devel --dist bookworm