Ver código fonte

Shift into ipxe disk directory to drop path names of sha256 list

Antony Messerli 9 anos atrás
pai
commit
f308b4e678
1 arquivos alterados com 5 adições e 3 exclusões
  1. 5 3
      script/prep-release.sh

+ 5 - 3
script/prep-release.sh

@@ -29,17 +29,19 @@ done
 cd ../..
 
 # generate header for sha256-checksums file
-cat > "build/ipxe/netboot.xyz-sha256-checksums.txt" <<EOF
+cd build/ipxe
+cat > netboot.xyz-sha256-checksums.txt <<EOF
 # netboot.xyz bootloaders generated from https://github.com/ipxe/ipxe
 # Git Hash: $IPXE_HASH
 
 EOF
 
 # generate sha256sums for iPXE disks
-for ipxe_disk in `ls build/ipxe/`
+for ipxe_disk in `ls .`
 do
-  sha256sum build/ipxe/$ipxe_disk >> build/ipxe/netboot.xyz-sha256-checksums.txt
+  sha256sum $ipxe_disk >> netboot.xyz-sha256-checksums.txt
 done
+cd ../..
 
 # copy iPXE src code into build directory
 cp -R src/* build/