1 # Shortcut for common operations:
3 CRATES
!= /usr
/bin
/cargo metadata
--no-deps
--format-version
=1 | jq
-r .workspace_members
'[]' | awk
'{ print $$1 }'
5 # By default we just run checks:
10 deb
: $(foreach c
,$(CRATES
), $c-deb
)
11 echo
$(foreach c
,$(CRATES
), $c-deb
)
15 dsc
: $(foreach c
,$(CRATES
), $c-dsc
)
16 echo
$(foreach c
,$(CRATES
), $c-dsc
)
20 autopkgtest
: $(foreach c
,$(CRATES
), $c-autopkgtest
)
26 sudo
-k dpkg
-i build
/librust-
*.deb
33 BUILDCMD
='dpkg-buildpackage -S -us -uc -d' .
/build.sh
$*
37 autopkgtest build
/$* build
/*.deb
-- null
44 # Run the api-test server, serving the api-test/www/ subdir as 'www' dir over
48 cargo run
-p api-test
-- api-test
/www
/
50 # Prints a diff between the current code and the one rustfmt would produce
53 cargo
+nightly fmt
-- --check
55 # Doc without dependencies
64 rm -f
-- *-deb
*-dsc
*-autopkgtest
*.build
*.buildinfo
*.changes
72 dcmd
--deb rust-
$*_
*.changes \
73 | grep
-v
'.changes$$' \
74 |
tar -cf
"$@.tar" -T-
; \
75 cat
"$@.tar" | ssh
-X repoman@repo.proxmox.com upload
--product devel
--dist bookworm