Skip to content
Snippets Groups Projects
  • Michael Tokarev's avatar
    9c269f6d
    Makefile: remove bashism · 9c269f6d
    Michael Tokarev authored
    
    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: default avatarMichael Tokarev <mjt@tls.msk.ru>
    Message-id: 1396707946-21351-1-git-send-email-mjt@msgid.tls.msk.ru
    Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    9c269f6d
    History
    Makefile: remove bashism
    Michael Tokarev authored
    
    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: default avatarMichael Tokarev <mjt@tls.msk.ru>
    Message-id: 1396707946-21351-1-git-send-email-mjt@msgid.tls.msk.ru
    Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>