configure
changeset 6081 57d2fa5e3073
parent 6035 9009f472b356
child 6246 75451000349d
equal deleted inserted replaced
6080:3148f3835e18 6081:57d2fa5e3073
    56 	echo "Languages not found in $LANG_DIR. Can't continue without it."
    56 	echo "Languages not found in $LANG_DIR. Can't continue without it."
    57 	echo "Please make sure the dir exists and contains at least english.txt"
    57 	echo "Please make sure the dir exists and contains at least english.txt"
    58 fi
    58 fi
    59 
    59 
    60 # Read the source.list and process it
    60 # Read the source.list and process it
    61 SRCS="`< $ROOT_DIR/source.list tr '\r' '\n' | awk '
    61 SRCS="`< $ROOT_DIR/source.list tr '\r' '\n' | $awk '
    62 	{  }
    62 	{  }
    63 	/^(	*)#end/  { if (deep == skip) { skip -= 1; } deep -= 1; next; }
    63 	/^(	*)#end/  { if (deep == skip) { skip -= 1; } deep -= 1; next; }
    64 	/^(	*)#else/ { if (deep == skip) { skip -= 1; } else if (deep - 1 == skip) { skip += 1; } next; }
    64 	/^(	*)#else/ { if (deep == skip) { skip -= 1; } else if (deep - 1 == skip) { skip += 1; } next; }
    65 	/^(	*)#if/   {
    65 	/^(	*)#if/   {
    66 		gsub("	", "", $0);
    66 		gsub("	", "", $0);
    98 			print $0;
    98 			print $0;
    99 		}
    99 		}
   100 	}
   100 	}
   101 ' | $PIPE_SORT`"
   101 ' | $PIPE_SORT`"
   102 
   102 
   103 OBJS_C="`  echo \"$SRCS\" | awk ' { ORS = " " } /\.c$/   { gsub(".c$",   ".o", $0); print $0; }'`"
   103 OBJS_C="`  echo \"$SRCS\" | $awk ' { ORS = " " } /\.c$/   { gsub(".c$",   ".o", $0); print $0; }'`"
   104 OBJS_CPP="`echo \"$SRCS\" | awk ' { ORS = " " } /\.cpp$/ { gsub(".cpp$", ".o", $0); print $0; }'`"
   104 OBJS_CPP="`echo \"$SRCS\" | $awk ' { ORS = " " } /\.cpp$/ { gsub(".cpp$", ".o", $0); print $0; }'`"
   105 OBJS_MM="` echo \"$SRCS\" | awk ' { ORS = " " } /\.mm$/  { gsub(".mm$",  ".o", $0); print $0; }'`"
   105 OBJS_MM="` echo \"$SRCS\" | $awk ' { ORS = " " } /\.mm$/  { gsub(".mm$",  ".o", $0); print $0; }'`"
   106 OBJS_RC="` echo \"$SRCS\" | awk ' { ORS = " " } /\.rc$/  { gsub(".rc$",  ".o", $0); print $0; }'`"
   106 OBJS_RC="` echo \"$SRCS\" | $awk ' { ORS = " " } /\.rc$/  { gsub(".rc$",  ".o", $0); print $0; }'`"
   107 SRCS="`    echo \"$SRCS\" | awk ' { ORS = " " } { print $0; }'`"
   107 SRCS="`    echo \"$SRCS\" | $awk ' { ORS = " " } { print $0; }'`"
   108 
   108 
   109 # In makefiles, we always use -u for sort
   109 # In makefiles, we always use -u for sort
   110 if [ -z "$sort" ]; then
   110 if [ -z "$sort" ]; then
   111 	sort="sed s/a/a/"
   111 	sort="sed s/a/a/"
   112 else
   112 else