From 5b05e17a78e93c7b994563f49d4beebe377d7479 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Thu, 7 Jul 2011 18:36:57 +0400 Subject: [PATCH] smake shows warnings now =) --- bash/smake/smake.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/bash/smake/smake.sh b/bash/smake/smake.sh index 56e9d64..0315f8f 100755 --- a/bash/smake/smake.sh +++ b/bash/smake/smake.sh @@ -68,7 +68,6 @@ cat $RULES_FILE >> Makefile REP_INCLUDE=`echo $REP_INCLUDE | sed "s~-I~~g ; s~\\$(HOME)~${HOME}~"` # --- Target deplist --- - target_dep_lst=`remove_c_comments.pl $REP_TARGET.c | grep -P '^[\t ]*#include[\t ]*"' | sed 's~[^"]*"\([^"]*\)".*~\1~' | sort -u` files_not_found= @@ -90,18 +89,23 @@ while [[ "$target_dep_lst" != "$old_target_dep_lst" ]]; do files_not_found="$files_not_found\n$f" continue fi -#echo F=$F - target_dep_lst="$target_dep_lst "`remove_c_comments.pl $F | grep -P '^[\t ]*#include[\t ]*"' | sed 's~[^"]*"\([^"]*\)".*~\1~' | sort -u` + target_dep_lst="$target_dep_lst "`remove_c_comments.pl $F \ + | grep -P '^[\t ]*#include[\t ]*"' \ + | sed 's~[^"]*"\([^"]*\)".*~\1~' | sort -u` target_dep_lst=`echo $target_dep_lst | sed 's~ ~\n~g' | sort -u` done -#echo "target_dep_lst=$target_dep_lst" -#echo "---------------" done if [ $DEBUG == 1 ]; then echo -e "target_dep_lst:\n`echo $target_dep_lst | sed -e 's~ ~\n~g' | sed 's~\(^..\)~ \1~g'`" fi +# --- Object files deplist --- + + + + +# ======= Warning ======= files_not_found=`echo -e "$files_not_found" | sort -u` if [ "$files_not_found" != "" ]; then echo WARNING: Include files not found: $files_not_found