gcc 280 B

123456789101112131415
  1. #!/bin/bash
  2. curPWD=$PWD
  3. cd $(dirname $0)
  4. export gbs_root=$(echo $PWD | sed "s/\/usr\/bin\/host-tools$//gi")
  5. cd $curPWD
  6. escapedArgs=""
  7. for i in $(seq 1 ${#}); do
  8. escapedArgs="$escapedArgs \"${!i}\""
  9. done
  10. echo "gcc $escapedArgs" | gbs chroot --silent --mount $PWD $gbs_root