Skip to content

Instantly share code, notes, and snippets.

@juliusknorr
Created April 29, 2013 18:21
Show Gist options
  • Save juliusknorr/5483591 to your computer and use it in GitHub Desktop.
Save juliusknorr/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