Skip to content

Instantly share code, notes, and snippets.

@bblanchon
Created April 21, 2019 12:23
Show Gist options
  • Save bblanchon/8ac704e34e4aac27d37400b1112f5b2b to your computer and use it in GitHub Desktop.
Save bblanchon/8ac704e34e4aac27d37400b1112f5b2b to your computer and use it in GitHub Desktop.
Script I used to generate github.com/bblanchon/predefined-macros
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