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/scripts/helpers/build/clean') diff --git a/resources/scripts/helpers/build/clean/bucts b/resources/scripts/helpers/build/clean/bucts index 80fe3a8..2d3f9bb 100755 --- a/resources/scripts/helpers/build/clean/bucts +++ b/resources/scripts/helpers/build/clean/bucts @@ -29,12 +29,12 @@ set -u -e printf "Cleaning the previous build of bucts\n" -cd bucts/ +cd "bucts/" make clean printf "\n\n" # done. go back to main directory. -cd ../ +cd "../" # ------------------- DONE ---------------------- diff --git a/resources/scripts/helpers/build/clean/coreboot b/resources/scripts/helpers/build/clean/coreboot index b542989..1eb8ab3 100755 --- a/resources/scripts/helpers/build/clean/coreboot +++ b/resources/scripts/helpers/build/clean/coreboot @@ -29,7 +29,7 @@ set -u -e printf "Cleaning the previous build of the utilities in coreboot\n" -cd coreboot/ +cd "coreboot/" # ---------------------- # clean coreboot itself: @@ -40,11 +40,11 @@ make clean # clean the utilities # ------------------- # clean cbfstool -cd util/cbfstool/ +cd "util/cbfstool/" make clean # go back to coreboot dir -cd ../../ +cd "../../" # ------------------------------------- # clean reference crossGCC for coreboot @@ -53,7 +53,7 @@ cd ../../ make crossgcc-clean # done. go back to main directory -cd ../ +cd "../" printf "\n\n" diff --git a/resources/scripts/helpers/build/clean/flashrom b/resources/scripts/helpers/build/clean/flashrom index 41f5d28..d7eba90 100755 --- a/resources/scripts/helpers/build/clean/flashrom +++ b/resources/scripts/helpers/build/clean/flashrom @@ -29,15 +29,15 @@ set -u -e printf "Cleaning the previous build of flashrom\n" -cd flashrom/ +cd "flashrom/" make clean # remove patched binaries -rm -f flashrom_lenovobios_sst -rm -f flashrom_lenovobios_macronix +rm -f "flashrom_lenovobios_sst" +rm -f "flashrom_lenovobios_macronix" # done. go back to main directory -cd ../ +cd "../" printf "\n\n" diff --git a/resources/scripts/helpers/build/clean/grub b/resources/scripts/helpers/build/clean/grub index 9a806a2..cf22c8a 100755 --- a/resources/scripts/helpers/build/clean/grub +++ b/resources/scripts/helpers/build/clean/grub @@ -27,13 +27,13 @@ set -u -e # clean grub # -------------------------------------------------------- -cd grub/ +cd "grub/" printf "Cleaning the previous build of GRUB\n" -[[ -f Makefile ]] && make distclean +[[ -f "Makefile" ]] && make distclean # done. go back to main directoy -cd ../ +cd "../" printf "\n\n" diff --git a/resources/scripts/helpers/build/clean/i945pwm b/resources/scripts/helpers/build/clean/i945pwm index ff383e8..1183859 100755 --- a/resources/scripts/helpers/build/clean/i945pwm +++ b/resources/scripts/helpers/build/clean/i945pwm @@ -28,9 +28,9 @@ set -u -e # -------------------------------------------------------------------- printf "Cleaning the previous build of i945-pwm\n" -cd resources/utilities/i945-pwm +cd "resources/utilities/i945-pwm/" make clean -cd ../../../ +cd "../../../" printf "\n\n" # ------------------- DONE ---------------------- diff --git a/resources/scripts/helpers/build/clean/ich9deblob b/resources/scripts/helpers/build/clean/ich9deblob index 04d971a..cfca981 100755 --- a/resources/scripts/helpers/build/clean/ich9deblob +++ b/resources/scripts/helpers/build/clean/ich9deblob @@ -28,9 +28,9 @@ set -u -e # -------------------------------------------------------------------- printf "Cleaning the previous build of ich9deblob\n" -cd resources/utilities/ich9deblob/ +cd "resources/utilities/ich9deblob/" make clean -cd ../../../ +cd "../../../" printf "\n\n" # ------------------- DONE ---------------------- diff --git a/resources/scripts/helpers/build/clean/memtest86plus b/resources/scripts/helpers/build/clean/memtest86plus index 3ad8130..ad25915 100755 --- a/resources/scripts/helpers/build/clean/memtest86plus +++ b/resources/scripts/helpers/build/clean/memtest86plus @@ -34,7 +34,7 @@ cd "memtest86+-5.01"/ make clean # done. go back to main directory -cd ../ +cd "../" printf "\n\n" diff --git a/resources/scripts/helpers/build/clean/rom_images b/resources/scripts/helpers/build/clean/rom_images index 3a7d90c..e952d5c 100755 --- a/resources/scripts/helpers/build/clean/rom_images +++ b/resources/scripts/helpers/build/clean/rom_images @@ -28,7 +28,7 @@ set -u -e # -------------------------------------------------------- # delete the bin/ directory -rm -Rf bin/ +rm -Rf "bin/" printf "Deleted the bin/ directory containing the ROM images.\n\n" -- cgit v0.9.1