init on github

This commit is contained in:
eddyem
2015-07-23 13:53:23 +03:00
parent 78114fe2cd
commit f4ec4c3ae3
13 changed files with 1239 additions and 0 deletions

14
compile Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
function compile_file(){
Name="$(echo "$1" | sed "s/\(.*\)\.c/\1/")"
gcc -Wall -Werror -lX11 -lm -lpthread "${Name}.c" -o "$Name"
}
if [ "$1" != "" ]; then
compile_file "$1"
else
for file in *.c; do
compile_file "$file"
done
fi
rm -f *.o