From 12c50f7939c02db85f05830c4b9fccf464b3977a Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Wed, 10 Jun 2015 20:30:48 -0400 Subject: all script: use a standard style Based on the style used for the script in resources/scripts/helpers/build/release/ --- (limited to 'resources/utilities/coreboot-libre/findblobs') diff --git a/resources/utilities/coreboot-libre/findblobs b/resources/utilities/coreboot-libre/findblobs index 7d9b5b0..4fcda2a 100755 --- a/resources/utilities/coreboot-libre/findblobs +++ b/resources/utilities/coreboot-libre/findblobs @@ -30,29 +30,29 @@ set -e -u # this will have to do. printf "Searching for blobs in coreboot\n" -cp deblob-check ../../../coreboot -cd ../../../coreboot/ +cp "deblob-check" "../../../coreboot" +cd "../../../coreboot/" -chmod +x deblob-check -find -type f | xargs ./deblob-check > blobs -rm -f deblob-check +chmod +x "deblob-check" +find -type f | xargs ./deblob-check > "blobs" +rm -f "deblob-check" -rm -f tocheck -touch tocheck +rm -f "tocheck" +touch "tocheck" for file in $(cat blobs) do - if ! grep -Fxq "$file" ../resources/utilities/coreboot-libre/nonblobs + if ! grep -Fxq "${file}" "../resources/utilities/coreboot-libre/nonblobs" then - echo "$file" >> tocheck + printf "%s\n" "${file}" >> tocheck fi done -rm -f blobs +rm -f "blobs" -rm -f ../resources/utilities/coreboot-libre/tocheck -mv tocheck ../resources/utilities/coreboot-libre +rm -f "../resources/utilities/coreboot-libre/tocheck" +mv "tocheck" "../resources/utilities/coreboot-libre/" -cd ../resources/utilities/coreboot-libre +cd "../resources/utilities/coreboot-libre/" printf "Done! open resources/utilities/coreboot-libre/tocheck in an editor\n" printf "This will contain the names of the files that you must decide whether they are blobs or not\n\n" -- cgit v0.9.1