-
-
Save LemonPi/b0a7171ac10b86db4eac7f4fcdc90f59 to your computer and use it in GitHub Desktop.
Quick c++11 compile script for bash; put in user path (e.g. /usr/bin/)
This file contains 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
filename=$(basename "$1") | |
outfile="${filename%.*}" | |
{ g++ -o $outfile $@ -std=c++11 2>&1; } | tee log.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment