(install): Create a clean econfig.new when the one found at the
destination doesn't work.
This commit is contained in:
parent
51ce3c8dfb
commit
1c7cdbaad9
1 changed files with 4 additions and 2 deletions
6
Make.mk
6
Make.mk
|
@ -179,11 +179,13 @@ install: all installdirs
|
|||
if src/util/pconfig $(econfig) >$(econfig).new; then \
|
||||
if cmp -s $(econfig) $(econfig).new; then \
|
||||
rm $(econfig).new; \
|
||||
else \
|
||||
echo "Check out $(econfig).new"; \
|
||||
fi \
|
||||
else \
|
||||
echo "Your $(econfig) doesn't work"; \
|
||||
src/util/pconfig >$(econfig).new \
|
||||
fi \
|
||||
if [ -e $(econfig); then \
|
||||
echo "Check out $(econfig).new"; \
|
||||
fi \
|
||||
else \
|
||||
src/util/pconfig >$(econfig); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue