Commit ee9ef43a authored by sof's avatar sof
Browse files

[project @ 1998-06-11 10:09:02 by sof]

install-bin:
   * if any of $(VERSION_SYMLINKS_FOR) already exists as a symlink,
     replace it with a new one.
parent ae31748e
......@@ -205,8 +205,15 @@ install-bin:
for i in $(VERSION_SYMLINKS_FOR) ""; do \
if [ "x$$i" != "x" ]; then \
( cd $(bindir); \
$(RM) $$i; \
$(LN_S) $$i-$(version) $$i \
if ( $(PERL) -e '$$fn="'$$i'"; exit ((! -f $$fn || -l $$fn) ? 0 : 1);' ); then \
echo "Creating a symbol link from $$i-$(version) to $$i"; \
$(RM) $$i; \
$(LN_S) $$i-$(version) $$i; \
else \
echo "Creating a symbol link from $$i-$(version) to $$i failed: \`$$i' already exists"; \
echo "Perhaps remove \`$$i' manually?"; \
exit 1; \
fi;\
); \
fi; \
done
......
Supports Markdown
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