Commit ae678a13 by Jim Wilson

(stmp-int-hdrs): Don't cd to srcdir before copying

header files to objdir.

From-SVN: r12849
parent 7d9f07f4
...@@ -1809,14 +1809,12 @@ stmp-int-hdrs: stmp-fixinc $(USER_H) xlimits.h objc-headers ...@@ -1809,14 +1809,12 @@ stmp-int-hdrs: stmp-fixinc $(USER_H) xlimits.h objc-headers
# The sed command gets just the last file name component; # The sed command gets just the last file name component;
# this is necessary because VPATH could add a dirname. # this is necessary because VPATH could add a dirname.
# Using basename would be simpler, but some systems don't have it. # Using basename would be simpler, but some systems don't have it.
objdir=`pwd`; \
cd $(srcdir); \
for file in .. $(USER_H); do \ for file in .. $(USER_H); do \
if [ X$$file != X.. ]; then \ if [ X$$file != X.. ]; then \
realfile=`echo $$file | sed -e 's|.*/\([^/]*\)$$|\1|'`; \ realfile=`echo $$file | sed -e 's|.*/\([^/]*\)$$|\1|'`; \
rm -f $$objdir/include/$$realfile; \ rm -f include/$$realfile; \
cp $$file $$objdir/include; \ cp $$file include; \
chmod a+r $$objdir/include/$$realfile; \ chmod a+r include/$$realfile; \
fi; \ fi; \
done done
rm -f include/limits.h rm -f include/limits.h
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment