- #!/bin/bash
- curPWD=$PWD
- cd $(dirname $0)
- export gbs_root=$(echo $PWD | sed "s/\/usr\/bin\/host-tools$//gi")
- cd $curPWD
- escapedArgs=""
- for i in $(seq 1 ${#}); do
- escapedArgs="$escapedArgs \"${!i}\""
- done
- echo "gcc $escapedArgs" | gbs chroot --silent --mount $PWD $gbs_root
|