1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-09-11 08:15:35 +03:00

[formatting] add newline to file(s) (#1508)

* Trail appropriate files with a new line

* For some ironic reason it ignored itself

Probably because it wasn’t tracked/commited yet.

* Rename newlines to server executable naming pattern
This commit is contained in:
Patrick 'Quezler' Mounier 2020-02-06 00:36:56 +01:00 committed by GitHub
parent 8bb533f646
commit e06d8eabec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
71 changed files with 84 additions and 68 deletions

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

14
tools/run-newline Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env bash
# add newlines to all files
git ls-files -z | while IFS= read -rd '' f; do tail -c1 < "$f" | read -r _ || echo >> "$f"; done
# undo the changes in these
git checkout -- "*.png"
git checkout -- "*.msav"
git checkout -- "*.jar"
git checkout -- "*.ogg"
git checkout -- "*.ico"
git checkout -- "*.icns"
git checkout -- "*.ttf"
git checkout -- "*.glsl"