Skip to content
Snippets Groups Projects
Commit e55388ee authored by sof's avatar sof
Browse files

[project @ 1998-04-16 12:05:48 by sof]

Handle the case where  already exists (as a file)
parent 2e4e780f
No related branches found
No related tags found
No related merge requests found
......@@ -413,8 +413,18 @@ endif
ifneq "$(SCRIPT_LINK)" ""
all :: $(SCRIPT_LINK)
# The use of -L is non-standard, but I've yet to find
# an implementation of `test' that doesn't like it.
$(SCRIPT_LINK) : $(SCRIPT_PROG)
$(LN_S) $(SCRIPT_PROG) $(SCRIPT_LINK)
@if ( test ! -f $(SCRIPT_LINK) -o -L $(SCRIPT_LINK) ); then \
echo "Creating a symbol link from $(SCRIPT_PROG) to $(SCRIPT_LINK)"; \
$(RM) $(SCRIPT_LINK); \
$(LN_S) $(SCRIPT_PROG) $(SCRIPT_LINK); \
else \
echo "Creating a symbol link from $(SCRIPT_PROG) to $(SCRIPT_LINK) failed: \`$(SCRIPT_LINK)' already exists"; \
echo "Perhaps remove \`$(SCRIPT_LINK)' manually?"; \
exit 1; \
fi;
endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment