scripting improvements, warning.c
This commit is contained in:
parent
47c22c84d2
commit
baea9ae9be
Binary file not shown.
|
@ -10,4 +10,12 @@ do
|
|||
returnCode=1;
|
||||
fi
|
||||
done
|
||||
echo -ne "\nfinished compiling all source files. ";
|
||||
if [ "$returnCode" -eq 0 ]
|
||||
then
|
||||
echo -ne "No errors occured.";
|
||||
else
|
||||
echo -ne "Some errors occured.";
|
||||
fi
|
||||
echo "";
|
||||
exit $returnCode
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
noext=$(echo "$1" | cut -f 1 -d '.')
|
||||
./compile $1
|
||||
./compile.sh $1
|
||||
./bin/$noext $2 $3 $4 $5 $6 $7 $8 $9
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#!/bin/bash
|
||||
echo "compiling $1 ..."
|
||||
noext=$(echo "$1" | cut -f 1 -d '.')
|
||||
|
||||
# to treat warnings as errors, use the following line
|
||||
#gcc $1 -o bin/$noext -lm -Werror=format
|
||||
#
|
||||
gcc $1 -o bin/$noext -lm
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
# Huffman
|
||||
the testfiles folder is unpopulated and not staged through gitignore, as it might contain large files.
|
||||
use the following command to populate it or create your own testfiles.
|
||||
Use the following command to populate it or create your own testfiles.
|
||||
|
||||
``dd if=/dev/urandom of=10K-random.img count=1K``
|
||||
|
||||
``dd if=/dev/urandom of=10K-random.img count=1M``
|
||||
|
||||
...
|
||||
|
||||
files with random bytes wont be able to be compressed byy much, that is normal.
|
||||
|
|
Loading…
Reference in New Issue