From ed832c7f3b5e7e108851827ec570d92336292f54 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Wed, 1 May 2024 10:12:43 -0700 Subject: [PATCH 1/2] Fix 2014/endoh1/rake.sh - remove prog.dSYM at end --- 2014/endoh1/rake.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2014/endoh1/rake.sh b/2014/endoh1/rake.sh index 7658bde56..532daa3a9 100755 --- a/2014/endoh1/rake.sh +++ b/2014/endoh1/rake.sh @@ -40,5 +40,5 @@ elif [[ ! -x prog ]]; then exit 1 else ./prog 1>&2 - exit "$?" fi +rm -rf prog.dSYM From 9dd3054f0d7284644025f43e4826480e51277913 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Wed, 1 May 2024 10:17:10 -0700 Subject: [PATCH 2/2] Fixes in 2014/endoh1/Rakefile Rather than have the rake.sh script remove prog.dSYM the Rakefile no longer uses -g. Also to silent the misleading-indentation warning the Rakefile has had the -Wno-misleading-indentation option added to it too. --- 2014/endoh1/Rakefile | 2 +- 2014/endoh1/rake.sh | 2 +- 2014/endoh1/try.sh | 1 + thanks-for-help.html | 3 +++ thanks-for-help.md | 4 ++++ 5 files changed, 10 insertions(+), 2 deletions(-) diff --git a/2014/endoh1/Rakefile b/2014/endoh1/Rakefile index c6c696918..6ac5c813f 100644 --- a/2014/endoh1/Rakefile +++ b/2014/endoh1/Rakefile @@ -27,7 +27,7 @@ file "prog.c" => ["main.c", "gen-prog.rb", "prog-tmpl.c"] do |t| end file "prog" => "prog.c" do |t| - sh "gcc", "-Wall", "-W", "-Wextra", "-o", t.name, t.prerequisites[0], "-g" + sh "gcc", "-Wall", "-W", "-Wextra", "-Wno-misleading-indentation", "-o", t.name, t.prerequisites[0] end task :test => :default do diff --git a/2014/endoh1/rake.sh b/2014/endoh1/rake.sh index 532daa3a9..7658bde56 100755 --- a/2014/endoh1/rake.sh +++ b/2014/endoh1/rake.sh @@ -40,5 +40,5 @@ elif [[ ! -x prog ]]; then exit 1 else ./prog 1>&2 + exit "$?" fi -rm -rf prog.dSYM diff --git a/2014/endoh1/try.sh b/2014/endoh1/try.sh index 21070dc85..220a8af98 100755 --- a/2014/endoh1/try.sh +++ b/2014/endoh1/try.sh @@ -50,5 +50,6 @@ echo 1>&2 read -r -p "Do you want to run make rake (Y/N)? " if [[ "$REPLY" == "y" || "$REPLY" == "Y" ]]; then + make clobber make rake 2>/dev/null fi diff --git a/thanks-for-help.html b/thanks-for-help.html index 6a8e2b78b..8304c8353 100644 --- a/thanks-for-help.html +++ b/thanks-for-help.html @@ -3886,6 +3886,9 @@ run it.
After more work on the manifest was done Cody had to update the clobber rule
to remove some text files so as to not cause problems with an invalid manifest.
Cody also added the try.sh script.
+To silence the annoying misleading indentation warning and to prevent debug
+symbols from being built with rake Cody also updated the
+Rakefile slightly.
Barely worth noting but done nonetheless, Cody renamed the read_me.html
file to spoilers.html to be clearer in its purpose as
it is a file with spoilers (and too close to index.html?).