Created
January 30, 2013 08:40
-
-
Save ErikSwan/4671697 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
PATH=$PATH:. && export PATH | |
if [ $# == 1 ]; then | |
BASE=`echo $1 | sed -e 's/.c//g'` | |
gcc -Wall -Werror -lm $1 -o $BASE && $BASE | |
else | |
echo "Must pass in single argument (path of .c file)" | |
fi | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment