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.
This commit is contained in:
1 parent
ed832c7f3b
commit
9dd3054f0d
5 files changed
+10
-2
No files matched your search
@@ -27,7 +27,7 @@ file "prog.c" => ["main.c", "gen-prog.rb", "prog-tmpl.c"] do |t|
|
|||||||
end
|
end
|
||||||
|
|
||||||
file "prog" => "prog.c" do |t|
|
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
|
end
|
||||||
|
|
||||||
task :test => :default do
|
task :test => :default do
|
||||||
|
|||||||
+1
-1
@@ -40,5 +40,5 @@ elif [[ ! -x prog ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
./prog 1>&2
|
./prog 1>&2
|
||||||
|
exit "$?"
|
||||||
fi
|
fi
|
||||||
rm -rf prog.dSYM
|
|
||||||
@@ -50,5 +50,6 @@ echo 1>&2
|
|||||||
|
|
||||||
read -r -p "Do you want to run make rake (Y/N)? "
|
read -r -p "Do you want to run make rake (Y/N)? "
|
||||||
if [[ "$REPLY" == "y" || "$REPLY" == "Y" ]]; then
|
if [[ "$REPLY" == "y" || "$REPLY" == "Y" ]]; then
|
||||||
|
make clobber
|
||||||
make rake 2>/dev/null
|
make rake 2>/dev/null
|
||||||
fi
|
fi
|
||||||
@@ -3886,6 +3886,9 @@ run it.</p>
|
|||||||
<p>After more work on the manifest was done Cody had to update the <code>clobber</code> rule
|
<p>After more work on the manifest was done Cody had to update the <code>clobber</code> rule
|
||||||
to remove some text files so as to not cause problems with an invalid manifest.</p>
|
to remove some text files so as to not cause problems with an invalid manifest.</p>
|
||||||
<p>Cody also added the <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/endoh1/try.sh">try.sh</a> script.</p>
|
<p>Cody also added the <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/endoh1/try.sh">try.sh</a> script.</p>
|
||||||
|
<p>To silence the annoying misleading indentation warning and to prevent debug
|
||||||
|
symbols from being built with <code>rake</code> Cody also updated the
|
||||||
|
<a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/endoh1/Rakefile">Rakefile</a> slightly.</p>
|
||||||
<p><strong><em>Barely</em></strong> worth noting but done nonetheless, Cody renamed the <code>read_me.html</code>
|
<p><strong><em>Barely</em></strong> worth noting but done nonetheless, Cody renamed the <code>read_me.html</code>
|
||||||
file to <a href="2014/endoh1/spoilers.html">spoilers.html</a> to be clearer in its purpose as
|
file to <a href="2014/endoh1/spoilers.html">spoilers.html</a> to be clearer in its purpose as
|
||||||
it is a file with spoilers (and too close to index.html?).</p>
|
it is a file with spoilers (and too close to index.html?).</p>
|
||||||
|
|||||||
@@ -4973,6 +4973,10 @@ to remove some text files so as to not cause problems with an invalid manifest.
|
|||||||
|
|
||||||
Cody also added the [try.sh](%%REPO_URL%%/2014/endoh1/try.sh) script.
|
Cody also added the [try.sh](%%REPO_URL%%/2014/endoh1/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](%%REPO_URL%%/2014/endoh1/Rakefile) slightly.
|
||||||
|
|
||||||
**_Barely_** worth noting but done nonetheless, Cody renamed the `read_me.html`
|
**_Barely_** worth noting but done nonetheless, Cody renamed the `read_me.html`
|
||||||
file to [spoilers.html](2014/endoh1/spoilers.html) to be clearer in its purpose as
|
file to [spoilers.html](2014/endoh1/spoilers.html) to be clearer in its purpose as
|
||||||
it is a file with spoilers (and too close to index.html?).
|
it is a file with spoilers (and too close to index.html?).
|
||||||
|
|||||||
Reference in new issue
Block a user