Mercurial > octave-nkf
diff liboctave/Makefile.in @ 2639:f95e58a25c90
[project @ 1997-01-28 17:20:29 by jwe]
author | jwe |
---|---|
date | Tue, 28 Jan 1997 17:20:30 +0000 |
parents | 7e24c1f29db4 |
children | a5a300c61159 |
line wrap: on
line diff
--- a/liboctave/Makefile.in Tue Jan 28 16:52:14 1997 +0000 +++ b/liboctave/Makefile.in Tue Jan 28 17:20:30 1997 +0000 @@ -181,15 +181,17 @@ rm -f $(octincludedir)/$$f ; \ $(INSTALL_DATA) $(srcdir)/$$f $(octincludedir)/$$f ; \ done - linkdir=`echo $(octincludedir) | sed 's/-$(version)$$//'` ; \ - if [ "$$linkdir" = $(octincludedir) ] ; then \ + tmp=`echo $(octincludedir) | sed 's|/*$$||'` ; \ + dir=`echo $$tmp | sed 's|[^/]*$$||'` ; \ + src=`echo $$tmp | sed 's|^.*/||'` ; \ + dest=`echo $$src | sed 's|-$(version)$$||'` ; \ + if [ "$$src" = "$$dest" ] ; then \ true ; \ else \ - if [ -d $$linkdir ] ; then \ + if [ -d $$dir/$$dest ] ; then \ true ; \ else \ - rm -f $$linkdir ; \ - $(LN_S) $(octincludedir) $$linkdir ; \ + cd $$dir ; rm -f $$dest && $(LN_S) $$src $$dest ; \ fi ; \ fi .PHONY: install-inc