]> git.pond.sub.org Git - empserver/commitdiff
(install): Create a clean econfig.new when the one found at the
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 18 Jun 2006 19:11:49 +0000 (19:11 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 18 Jun 2006 19:11:49 +0000 (19:11 +0000)
destination doesn't work.

Make.mk

diff --git a/Make.mk b/Make.mk
index 448de8678d8c768ca5ee9b97427be17c10fe2d87..6660da5d62d5347714d23050026fa7f25e38101a 100644 (file)
--- a/Make.mk
+++ b/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);                               \