Added .gitignore.

This commit is contained in:
Brad Arant committed 2019-02-15 12:52:23 -08:00
1 parent 9bc23e149c
commit a2526dd3ed
3 files changed
+42

No files matched your search

+1
View File
@@ -1,2 +1,3 @@
Debug Debug
*.o *.o
*~
Executable
+21
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
Executable
+20
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