[xtro] Append the lines and then sort them to get everything grouped better. (#12274)
This commit is contained in:
Родитель
2120c8faf2
Коммит
f7c6e8ab6b
|
@ -194,3 +194,6 @@ remove-empty-files:
|
||||||
unclassified2todo:
|
unclassified2todo:
|
||||||
$(SYSTEM_CSC) -features:strict Filter.cs u2todo/u2todo.cs
|
$(SYSTEM_CSC) -features:strict Filter.cs u2todo/u2todo.cs
|
||||||
$(MONO) u2todo.exe
|
$(MONO) u2todo.exe
|
||||||
|
@for filename in $(git status -s | cut -c4- | grep .todo); do \
|
||||||
|
sort -o "$filename" "$filename"; \
|
||||||
|
done
|
||||||
|
|
|
@ -17,7 +17,7 @@ class Program {
|
||||||
var todo = Path.ChangeExtension (file, ".todo");
|
var todo = Path.ChangeExtension (file, ".todo");
|
||||||
if (File.Exists (todo)) {
|
if (File.Exists (todo)) {
|
||||||
Console.WriteLine ($"Appending {file} to {todo}");
|
Console.WriteLine ($"Appending {file} to {todo}");
|
||||||
var content = "## appended from unclassified file" + Environment.NewLine + File.ReadAllText (file);
|
var content = File.ReadAllText (file);
|
||||||
File.AppendAllText (todo, content);
|
File.AppendAllText (todo, content);
|
||||||
File.Delete (file);
|
File.Delete (file);
|
||||||
} else {
|
} else {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче