1 2 3 4 5 6 7
#!/bin/bash for (( i = 1; i < 4; ++i )) ; do rm -f usr/bin/cpp gcc-config -C ${i} "$@" || exit 1 [[ -e usr/bin/cpp ]] || exit 1 [[ -e etc/env.d/04gcc-${CHOST} ]] || exit 1 done