#! /bin/bash

exec &>build-shim.log && \
wget https://github.com/rhboot/shim/releases/download/15/shim-15.tar.bz2 && \
tar -xf shim-15.tar.bz2 && \
cd shim-15 && \
make VENDOR_CERT_FILE=$HOME/vmware_esx40.cer EFI_PATH=/usr/lib 'DEFAULT_LOADER=\\\\grubx64.efi' shimx64.efi
