[hackers] [libixp] Use sed instead of ${foo#d} for portability. || sqweek

From: <hg_AT_suckless.org>
Date: Sun, 21 Sep 2008 03:40:56 +0000 (UTC)

changeset: 107:d3cba482b457
user: sqweek <sqweek_AT_gmail.com>
date: Sun Sep 21 03:26:36 2008 +0800
files: mk/dir.mk
description:
Use sed instead of ${foo#d} for portability.

diff -r 8002f61789f4 -r d3cba482b457 mk/dir.mk
--- a/mk/dir.mk Sat Sep 20 22:53:26 2008 +0800
+++ b/mk/dir.mk Sun Sep 21 03:26:36 2008 +0800
@@ -1,6 +1,6 @@
 MKSUBDIR = \
         set -e; \
- targ=$@; targ=$${targ\#d}; \
+ targ=`echo $@ |sed 's/^d//'`; \
         for i in $$dirs; do \
                 export BASE=$(BASE)$$i/; \
                 if [ ! -d $$i ]; then \
Received on Sun Sep 21 2008 - 03:40:56 UTC

This archive was generated by hypermail 2.2.0 : Sun Sep 21 2008 - 03:48:06 UTC