Created
April 21, 2019 12:23
-
-
Save bblanchon/8ac704e34e4aac27d37400b1112f5b2b to your computer and use it in GitHub Desktop.
Script I used to generate github.com/bblanchon/predefined-macros
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export FOLDER='predefined-macros' | |
export VERSIONS=(4.4 4.6 4.7 4.8 4.9 5 6 7 8) | |
mkdir "$FOLDER" | |
cd "$FOLDER" | |
git init | |
for v in "${VERSIONS[@]}"; | |
do | |
gcc-$v -dM -E - < /dev/null | sort > gcc.h | |
g++-$v -dM -E -x c++ - < /dev/null | sort > g++.h | |
git add -A | |
git commit -m "GCC $v" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment