[xtro] Append the lines and then sort them to get everything grouped better. (#12274)

This commit is contained in:
Manuel de la Pena 2021-07-28 13:18:00 -07:00 коммит произвёл GitHub
Родитель 2120c8faf2
Коммит f7c6e8ab6b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -194,3 +194,6 @@ remove-empty-files:
unclassified2todo:
$(SYSTEM_CSC) -features:strict Filter.cs u2todo/u2todo.cs
$(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");
if (File.Exists (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.Delete (file);
} else {