From e80a1ce6c770414c0fca6ebda3f3715926899e6a Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 22 Mar 2012 02:28:57 +0000 Subject: [PATCH] Code cleanup --- tools/graph.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/graph.sh b/tools/graph.sh index b486100..04ea8c2 100755 --- a/tools/graph.sh +++ b/tools/graph.sh @@ -1,6 +1,6 @@ #!/bin/sh #$Id$ -#Copyright (c) 2010 Pierre Pronchery +#Copyright (c) 2010-2012 Pierre Pronchery #This file is part of DeforaOS Unix utils #This program is free software: you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by @@ -19,12 +19,13 @@ #variables CC="../../../../Devel/src/c99/src/c99" DOT="dot -Tpng:cairo:gd" +RM="rm -f" VIEW="view" #functions #main -rm -f ../src/*.o.png +$RM ../src/*.o.png (cd '../src' && make -k CC="$CC" CPPFLAGS="-M graph -D__ELF__ -D__i386__" CFLAGS= distclean all) for i in ../src/*.o; do $DOT -o "$i.png" "$i"