Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a54436f

Browse files
committed
If Setup is older than Setup.in, issue a bold warning that the Setup may
need to be checked to make sure all the latest information is present. This closes SourceForge patch #101275.
1 parent 0cf8cde commit a54436f

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

Modules/Makefile.pre.in

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,17 @@ hassignal:
160160
fi; \
161161
done
162162

163-
Setup:
164-
cp $(srcdir)/Setup.in Setup
163+
Setup: $(srcdir)/Setup.in
164+
@if [ -f Setup ] ; then \
165+
echo; \
166+
echo "-------------------------------------------"; \
167+
echo "$(srcdir)/Setup.in is newer than Setup;"; \
168+
echo "check to make sure you have all the updates"; \
169+
echo "you need in your Setup file."; \
170+
echo "-------------------------------------------"; \
171+
echo; \
172+
else (set -x; cp $(srcdir)/Setup.in Setup); fi
173+
165174

166175
Setup.local:
167176
echo "# Edit this file for local setup changes" >Setup.local

0 commit comments

Comments
 (0)