Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile clobbers config #32

Closed
wants to merge 2 commits into from

Conversation

jaknel
Copy link
Contributor

@jaknel jaknel commented Jun 29, 2021

The existing Makefile make install behavior is not expected. /etc/soju/config will be overwritten with config.in every time # make install runs.

I changed cp -f to cp -n which will avoid clobbering the existing file.

Another option is for make install to copy config.in to something like /etc/soju/config.sample

@jaknel
Copy link
Contributor Author

jaknel commented Jun 29, 2021

I don't know what I messed up that it looks like this PR has 7 commits included, but feel free to close it and directly make the change yourself, if you think it's worth fixing.

@hhirtz
Copy link
Collaborator

hhirtz commented Jun 30, 2021

I don't know what I messed up that it looks like this PR has 7 commits included, but feel free to close it and directly make the change yourself, if you think it's worth fixing.

It should be fixed by git fetch origin && git rebase origin/master

@emersion
Copy link
Owner

I'm not sure how other software handles this situation, it doesn't seem like Meson is doing anything special.

@jaknel jaknel force-pushed the makefile-clobbers-config branch 2 times, most recently from 1921c33 to 18d6fa0 Compare July 7, 2021 20:13
Makefile Outdated Show resolved Hide resolved
emersion added a commit that referenced this pull request Oct 8, 2021
Use `test -f` instead of `cp -n`, because the former is POSIX.

References: #32
@emersion
Copy link
Owner

emersion commented Oct 8, 2021

Fixed in 81782fe.

@emersion emersion closed this Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants