Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #
- # build.sh
- # Build plainshell
- # By J. Stuart McMurray
- # Created 20160221
- # Last Modified 20160227
- set -e
- NAME="plainshell"
- # Maybe clean
- if [ "clean" == "$1" ]; then
- if [ -f "$NAME" ]; then
- rm $NAME
- echo Removed $NAME
- fi
- exit
- fi
- # Build it
- cc -O2 -Wall --pedantic -o $NAME -static plainshell.c -lpcap
- # Strip it
- strip $NAME
- # Tell the user
- H=$(basename $(pwd))
- (cd ..; ls -l $H/$NAME)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement