Received: from eggs.gnu.org ([2001:4830:134:3::10]:55688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWRXy-0000dn-Ay for qemu-devel@nongnu.org; Sat, 05 Apr 2014 10:26:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WWRXp-0001rn-AU for qemu-devel@nongnu.org; Sat, 05 Apr 2014 10:26:14 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:53541) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWRXp-0001qY-34 for qemu-devel@nongnu.org; Sat, 05 Apr 2014 10:26:05 -0400 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id A102640A60 for ; Sat, 5 Apr 2014 18:26:02 +0400 (MSK) From: Michael Tokarev Date: Sat, 5 Apr 2014 18:25:46 +0400 Message-Id: <1396707946-21351-1-git-send-email-mjt@msgid.tls.msk.ru> Subject: [Qemu-devel] [PATCH for-2.0] Makefile: remove bashism List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Michael Tokarev When installing modules (when --enable-modules is specified for ./configure), Makefile uses the following construct to replace all slashes with dashes in module name: ${s//\//-} This is a bash-specific substitution mechanism. POSIX does not have it, and some operating systems (for example Debian) does not implement this construct in default shell (for example dash). Use more traditional way to perform the substitution: use `tr' tool. Signed-off-By: Michael Tokarev diff --git a/Makefile b/Makefile index ec74039..d622799 100644 --- a/Makefile +++ b/Makefile @@ -376,7 +376,7 @@ endif ifneq ($(CONFIG_MODULES),) $(INSTALL_DIR) "$(DESTDIR)$(qemu_moddir)" for s in $(patsubst %.mo,%$(DSOSUF),$(modules-m)); do \ - $(INSTALL_PROG) $(STRIP_OPT) $$s "$(DESTDIR)$(qemu_moddir)/$${s//\//-}"; \ + $(INSTALL_PROG) $(STRIP_OPT) $$s "$(DESTDIR)$(qemu_moddir)/$$(echo $$s | tr / -)"; \ done endif ifneq ($(HELPERS-y),)