msmcommd: add libmsmhll as dependency and bump PR
[openembedded.git] / bin / wrapper.sh
blobd29d5b9c074d97812700af84265bc3a7ec2759dd
1 path_remove () {
2 echo $PATH | tr ':' '\n' | grep -v "^$1\$" | tr '\n' ':'
5 PATH="$(path_remove $(dirname $0))"
7 quote(){
8 sed -e "s,','\\\\'',g; 1s,^,',; \$s,\$,',;" << EOF
9 $1
10 EOF
13 save () {
14 case "$1" in
15 # when a string contains a "'" we have to escape it
16 *\'*)
17 saved="$saved $(quote "$1")"
19 # otherwise just quote the variable
21 saved="$saved '$1'"
23 esac
26 exec_real () {
27 eval set -- "$saved"
28 exec "$(basename $0)" "$@"