jeaye / stdman

Formatted C++20 stdlib man pages (cppreference)
MIT License
938 stars 51 forks source link

configure: remove unnecessary code #32

Closed wilhelmtell closed 5 years ago

wilhelmtell commented 5 years ago
jeaye commented 5 years ago

Hi! Thanks for all of the PRs. No concerns for any of them except for this one.

We need the rm -f Makefile, since:

┌─(✓)[jeaye@oryx]─[~][23:38:04]
└──╼ echo foo > bar
┌─(✓)[jeaye@oryx]─[~][23:38:07]
└──╼ cat bar
foo
┌─(✓)[jeaye@oryx]─[~][23:38:09]
└──╼ echo spam > bar
-bash: bar: cannot overwrite existing file
wilhelmtell commented 5 years ago

Ah, I think that is because you have set -o noclobber.

set -o |grep noclobber

would check for that. In that case, either

sed ... >|Makefile

rather than

sed ... >Makefile

would do the trick, forcing the overwrite, temporarily overriding the noclobber option. Or, indeed, the rm -f Makefile line.

jeaye commented 5 years ago

sed ... >|Makefile typically won't work on macOS. All of this leads to just having the rm -f Makefile. :smiley:

wilhelmtell commented 5 years ago

Sorry for the delay. I pushed an update with the rm -f Makefile line restored. Should I squash the commits (and force-push)?

wilhelmtell commented 5 years ago

Oh! >< sorry, I reverted the wrong lines >< I’ll fix when I’m home, sorry ><

wilhelmtell commented 5 years ago

Okay, should be good now.

At this point I‘m guessing it’s safe to say I should squash the commits in one (and force-push the branch)? 😆

jeaye commented 5 years ago

Sure, a squash would be good. Thanks!

wilhelmtell commented 5 years ago

Done!