Commit 19b9f82e by Richard Stallman

(install-cross-tools): Delete old symlink before making new one.

From-SVN: r2676
parent 3d037392
...@@ -1386,6 +1386,7 @@ install-cross-tools: install-dir ...@@ -1386,6 +1386,7 @@ install-cross-tools: install-dir
if [ -f $(libsubdir)/$$file ] ; \ if [ -f $(libsubdir)/$$file ] ; \
then true; \ then true; \
else \ else \
rm -rf $(libsubdir)/$$file; \
$(SYMLINK) $(tooldir)/bin/$$file $(libsubdir)/$$file \ $(SYMLINK) $(tooldir)/bin/$$file $(libsubdir)/$$file \
|| (echo "#!/bin/sh"; echo $(tooldir)/bin/$$file "$$@") > $(libsubdir)/$$file; \ || (echo "#!/bin/sh"; echo $(tooldir)/bin/$$file "$$@") > $(libsubdir)/$$file; \
fi; \ fi; \
...@@ -1396,6 +1397,7 @@ install-cross-tools: install-dir ...@@ -1396,6 +1397,7 @@ install-cross-tools: install-dir
if [ -f $(libsubdir)/`basename $$file` ] ; \ if [ -f $(libsubdir)/`basename $$file` ] ; \
then true; \ then true; \
else \ else \
rm -rf $(libsubdir)/`basename $$file`; \
$(SYMLINK) $$file $(libsubdir)/`basename $$file` \ $(SYMLINK) $$file $(libsubdir)/`basename $$file` \
|| $(INSTALL_DATA) $$file $(libsubdir)/`basename $$file`; \ || $(INSTALL_DATA) $$file $(libsubdir)/`basename $$file`; \
fi; \ fi; \
...@@ -1403,6 +1405,7 @@ install-cross-tools: install-dir ...@@ -1403,6 +1405,7 @@ install-cross-tools: install-dir
fi; \ fi; \
done; \ done; \
if [ -d $(tooldir)/include/. ] ; then \ if [ -d $(tooldir)/include/. ] ; then \
rm -rf $(libsubdir)/sys-include; \
$(SYMLINK) $(tooldir)/include $(libsubdir)/sys-include \ $(SYMLINK) $(tooldir)/include $(libsubdir)/sys-include \
|| (if [ -d $(libsubdir)/sys-include ] ; then true ; else mkdir $(libsubdir)/sys-include ; fi; \ || (if [ -d $(libsubdir)/sys-include ] ; then true ; else mkdir $(libsubdir)/sys-include ; fi; \
(cd $(tooldir)/include; tar cf - .) | (cd $(libsubdir)/sys-include; tar xpf -)); \ (cd $(tooldir)/include; tar cf - .) | (cd $(libsubdir)/sys-include; tar xpf -)); \
......
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