mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
1da177e4c3
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
14 lines
338 B
Bash
14 lines
338 B
Bash
#!/bin/sh
|
|
#
|
|
# gcc-version gcc-command
|
|
#
|
|
# Prints the gcc version of `gcc-command' in a canonical 4-digit form
|
|
# such as `0295' for gcc-2.95, `0303' for gcc-3.3, etc.
|
|
#
|
|
|
|
compiler="$*"
|
|
|
|
MAJOR=$(echo __GNUC__ | $compiler -E -xc - | tail -n 1)
|
|
MINOR=$(echo __GNUC_MINOR__ | $compiler -E -xc - | tail -n 1)
|
|
printf "%02d%02d\\n" $MAJOR $MINOR
|
|
|