configure
changeset 5806 67ed054c6881
parent 5737 2518c9df3780
child 5809 cd61f8b74f7d
equal deleted inserted replaced
5805:94cb5895c923 5806:67ed054c6881
    60 	echo "Languages not found in $LANG_DIR. Can't continue without it."
    60 	echo "Languages not found in $LANG_DIR. Can't continue without it."
    61 	echo "Please make sure the dir exists and contains at least english.txt"
    61 	echo "Please make sure the dir exists and contains at least english.txt"
    62 fi
    62 fi
    63 
    63 
    64 # Read the source.list and process it
    64 # Read the source.list and process it
    65 SRCS="`cat $ROOT_DIR/source.list | tr '\r' '\n' | awk '
    65 SRCS="`< $ROOT_DIR/source.list tr '\r' '\n' | awk '
    66 	{  }
    66 	{  }
    67 	/^(	*)#end/  { if (deep == skip) { skip -= 1; } deep -= 1; next; }
    67 	/^(	*)#end/  { if (deep == skip) { skip -= 1; } deep -= 1; next; }
    68 	/^(	*)#else/ { if (deep == skip) { skip -= 1; } else if (deep - 1 == skip) { skip += 1; } next; }
    68 	/^(	*)#else/ { if (deep == skip) { skip -= 1; } else if (deep - 1 == skip) { skip += 1; } next; }
    69 	/^(	*)#if/   {
    69 	/^(	*)#if/   {
    70 		gsub("	", "", $0);
    70 		gsub("	", "", $0);