Skip to content

Instantly share code, notes, and snippets.

@juliushaertl
Created April 29, 2013 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juliushaertl/5483591 to your computer and use it in GitHub Desktop.
Save juliushaertl/5483591 to your computer and use it in GitHub Desktop.
sysprog build script
#!/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