From d27c355f071db830013761b2783bf5ea8ef6de60 Mon Sep 17 00:00:00 2001 From: Till Straumann Date: Sun, 7 Mar 2010 17:11:23 +0000 Subject: 2010-03-07 Till Straumann * links.am: POSIXified sed commands for sake of portability. --- bsd_eth_drivers/links.am | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'bsd_eth_drivers/links.am') diff --git a/bsd_eth_drivers/links.am b/bsd_eth_drivers/links.am index 6add846..1f068a2 100644 --- a/bsd_eth_drivers/links.am +++ b/bsd_eth_drivers/links.am @@ -4,17 +4,15 @@ $(DUMMYHEADERS): @if [ ! -d `dirname $@` ] ; then mkdir -p `dirname $@`; fi @touch $@ -# if [ "$(echo $@ | sed -e 's/^\/.*/yes/')" = "yes" ]; then - $(LINKS): echo $@ if [ ! -d $(dir $@) ] ; then mkdir -p $(dir $@); fi if [ ! -e $@ ]; then \ rm -rf $@ ; \ - if [ "`echo $(srcdir) | sed -e 's/^\/.*/yes/'`" = "yes" ]; then \ - ln -s `echo $(dir $@) | sed -e 's%[^/]\+[/]\+%%g'`$(srcdir)/$(notdir $@) $@ ; \ + if [ "`echo $(srcdir) | sed -e 's%^/.*%yes%'`" = "yes" ]; then \ + ln -s `echo $(dir $@) | sed -e 's%[^/][^/]*[/][/]*%%g'`$(srcdir)/$(notdir $@) $@ ; \ else \ - ln -s `echo $(dir $@) | sed -e 's%[^/]\+[/]\+%../%g'`$(srcdir)/$(notdir $@) $@ ; \ + ln -s `echo $(dir $@) | sed -e 's%[^/][^/]*[/][/]*%../%g'`$(srcdir)/$(notdir $@) $@ ; \ fi ; \ fi -- cgit v1.2.3