Initial Commit

This commit is contained in:
ikari
2009-07-02 11:14:04 +02:00
commit e121b34cf4
60 changed files with 9256 additions and 0 deletions

15
src/gcctest.awk Normal file
View File

@@ -0,0 +1,15 @@
#! /usr/bin/gawk -f
#
# Parse the output of (avr-)gcc --version for the version number
# and output YES if it is at least 4.3.
{
match($0, /\) ([0-9]+)\.([0-9]+)\./, ver);
if (RLENGTH > 0) {
major = 0+ver[1];
minor = 0+ver[2];
if (major > 4 || (major == 4 && minor > 2)) {
print "YES";
}
}
}