Added .gitignore.

This commit is contained in:
Brad Arant 2019-02-15 12:52:23 -08:00
parent 9bc23e149c
commit a2526dd3ed
3 changed files with 42 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
Debug Debug
*.o *.o
*~

21
compile Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
for file in *.cpp
do
filename="${file%.*}"
list="$list $filename.o"
echo -n "Compiling $filename..."
g++ -c $file
if [ $? = '0' ]
then
echo "OK"
else
echo "ERROR"
fi
done
wait
echo $list
g++ -o main.cpp $list

20
compile~ Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
for file in *.cpp
do
filename="${file%.*}"
list="$list, $filename.o"
echo -n "Compiling $filename..."
g++ -c $file
if [ $? = '0' ]
then
echo "OK"
else
echo "ERROR"
fi
done
wait
echo $list