From 2dd5cf430edaae01594d566c9f27d780c3ffb4ef Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Sun, 26 Apr 2015 21:43:42 -0300 Subject: Initial commit --- run.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 run.sh (limited to 'run.sh') diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..0beb5eb --- /dev/null +++ b/run.sh @@ -0,0 +1,21 @@ +NEW_DISK="mkfs.md/disk.mdfs" + +echo "Compilando..." +make > /dev/null +if [ $? -ne 0 ]; then + echo "Error de compilacion" + exit 1 +fi + +fusermount -u ./mnt 2> /dev/null && echo "Desmontando" + +echo "Copiando $NEW_DISK" +cp ./$NEW_DISK . + +if [ "$1" == "valgrind" ]; then + valgrind --show-reachable=yes --leak-check=full ./fusewrapper mnt +else + ./fusewrapper mnt +fi + +exit 0 -- cgit v1.2.3-70-g09d2