summaryrefslogtreecommitdiffstats
path: root/bsd_eth_drivers/links.am
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2010-03-07 17:11:23 +0000
committerTill Straumann <strauman@slac.stanford.edu>2010-03-07 17:11:23 +0000
commitd27c355f071db830013761b2783bf5ea8ef6de60 (patch)
treee8f562618f8ee35e1c6fc51dc2d876c3c672cb02 /bsd_eth_drivers/links.am
parent2010-02-12 Till Straumann <Till.Straumann@TU-Berlin.de> (diff)
downloadlibbsdport-d27c355f071db830013761b2783bf5ea8ef6de60.tar.bz2
2010-03-07 Till Straumann <Till.Straumann@TU-Berlin.de>
* links.am: POSIXified sed commands for sake of portability.
Diffstat (limited to 'bsd_eth_drivers/links.am')
-rw-r--r--bsd_eth_drivers/links.am8
1 files changed, 3 insertions, 5 deletions
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