Created
April 29, 2013 18:21
-
-
Save juliusknorr/5483591 to your computer and use it in GitHub Desktop.
sysprog build script
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
#!/bin/bash | |
echo "======= Sysprog Build Script =======" | |
for f in $(find $SrvDir* -maxdepth 0 -type d ); | |
do | |
echo "Compiling $f" | |
sourcefile="" | |
for sf in $(find $f -iregex '.*\(c\)' -printf "%f\n") | |
do | |
sourcefile="$sourcefile $f/$sf" | |
done | |
outputfile="$f/$f" | |
gcc -g -o $outputfile $sourcefile | |
chmod +x "$outputfile" | |
done | |
echo "====================================" | |
echo "" | |
echo "" | |
# Start debugging | |
#gdb ./bin/a13 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment