Shell: crun function.

master
Pierre Neidhardt 2013-02-19 23:23:25 +01:00
parent 212c33c296
commit cbd59b5686
1 changed files with 14 additions and 0 deletions

View File

@ -825,6 +825,20 @@ ediff()
emacs -q -l ~/.emacs-light --eval "(ediff \"$1\" \"$2\")"
}
crun()
{
if [ $# -ne 1 ]; then
echo "Usage: $0 FILE"
return
fi
FILE=$(mktemp)
gcc -Wall -Wextra -Wshadow -Os $1 -o "$FILE"
echo "================================================================================"
"$FILE"
rm "$FILE"
}
##==============================================================================
## Pacman functions
##==============================================================================