diff options
| author | Steve McIntyre <steve@einval.com> | 2021-03-13 19:43:00 +0000 |
|---|---|---|
| committer | Steve McIntyre <steve@einval.com> | 2021-03-23 23:32:52 +0000 |
| commit | 9b014236c8b4113aeae40b452e35208cf0397d1a (patch) | |
| tree | 2fd4323df9dd0091318b1634e56cd8be0558af05 /debian/rules | |
| parent | 2e0a83e1f2e1d1cf76a4082eb14dd7f9b11eda2d (diff) | |
| download | efi-boot-shim-9b014236c8b4113aeae40b452e35208cf0397d1a.tar.gz efi-boot-shim-9b014236c8b4113aeae40b452e35208cf0397d1a.zip | |
Add an extra rule to generate the extra gnu-efi tarball
Thanks to Dmitri John Ledkov for help
Diffstat (limited to 'debian/rules')
| -rwxr-xr-x | debian/rules | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules index 0306a937..47d964dd 100755 --- a/debian/rules +++ b/debian/rules @@ -15,7 +15,9 @@ else distributor=debian endif -deb_version := $(shell dpkg-parsechangelog | sed -ne "s/^Version: \(.*\)/\1/p") +deb_version := $(shell dpkg-parsechangelog | sed -ne "s/^Version: \(.*\)/\1/p") +upstream_version := $(shell echo $(deb_version) | sed -e "s/-[^-]*$$//") +plain_upstream_version := $(shell echo $(upstream_version) | sed -e "s/+dfsg.*//") DBX_LIST = dbx.esl DBX_HASHES = debian/$(distributor)-dbx.hashes @@ -85,3 +87,7 @@ override_dh_auto_install: # not needed for our build and causes debhelper to complain rm -f debian/tmp/boot/efi/EFI/BOOT/BOOT*.EFI ./debian/signing-template.generate + +generate-gnu-efi: + git -C gnu-efi archive --prefix=gnu-efi/ HEAD | xz -9 \ + > ../shim_$(plain_upstream_version).orig-gnu-efitar.xz |
