(install): Create a clean econfig.new when the one found at the

destination doesn't work.
This commit is contained in:
Markus Armbruster 2006-06-18 19:11:49 +00:00
parent 51ce3c8dfb
commit 1c7cdbaad9

View file

@ -179,11 +179,13 @@ install: all installdirs
if src/util/pconfig $(econfig) >$(econfig).new; then \ if src/util/pconfig $(econfig) >$(econfig).new; then \
if cmp -s $(econfig) $(econfig).new; then \ if cmp -s $(econfig) $(econfig).new; then \
rm $(econfig).new; \ rm $(econfig).new; \
else \
echo "Check out $(econfig).new"; \
fi \ fi \
else \ else \
echo "Your $(econfig) doesn't work"; \ echo "Your $(econfig) doesn't work"; \
src/util/pconfig >$(econfig).new \
fi \
if [ -e $(econfig); then \
echo "Check out $(econfig).new"; \
fi \ fi \
else \ else \
src/util/pconfig >$(econfig); \ src/util/pconfig >$(econfig); \