summaryrefslogtreecommitdiff
blob: 5912d2c606b7409adc4187b476a8ca27f4df01d3 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash
for (( i = 1; i < 4; ++i )) ; do
	rm -f usr/bin/*
	gcc-config -C ${i} "$@" || exit 1
	for b in {,${CHOST}-}{cpp,gcc} cc ; do
		[[ -e usr/bin/${b} ]] || exit 1
	done
	[[ -e etc/env.d/04gcc-${CHOST} ]] || exit 1
done