Skip to content

Commit 13cc131

Browse files
committed
add script to fix end newlines
<!-- ps-id: 1af6c3bc-7c17-40af-b082-6c263579d996 --> Signed-off-by: Ali Caglayan <[email protected]>
1 parent acb3775 commit 13cc131

File tree

7 files changed

+20
-6
lines changed

7 files changed

+20
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,4 @@ More information can be found in the [Wiki][22].
9999
[20]: https://code.visualstudio.com/
100100
[21]: https://github.com/coq-community/vscoq
101101

102-
[22]: https://github.com/HoTT/HoTT/wiki
102+
[22]: https://github.com/HoTT/HoTT/wiki

etc/fix_end_newlines.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
# This command fixes the end-of-file newlines for all files in the repository.
4+
5+
while IFS= read -r file; do
6+
# Check if the file is a regular file
7+
if [ -f "$file" ]; then
8+
if [ -n "$(tail -c 1 "$file")" ]; then
9+
echo "Adding newline to file: $file"
10+
echo >> "$file"
11+
git add "$file"
12+
fi
13+
fi
14+
done < <(git ls-files)

theories/Cubical.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ Require Export Cubical.DPath.
22
Require Export Cubical.PathSquare.
33
Require Export Cubical.DPathSquare.
44
Require Export Cubical.PathCube.
5-
Require Export Cubical.DPathCube.
5+
Require Export Cubical.DPathCube.

theories/Diagrams/ParallelPair.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ Proof.
3232
srapply Build_Cocone.
3333
1: intros []; [exact (q o f) | exact q].
3434
intros [] [] []; [reflexivity | exact Hq].
35-
Defined.
35+
Defined.

theories/Diagrams/Span.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ Section Span.
3333
+ exact g.
3434
Defined.
3535

36-
End Span.
36+
End Span.

theories/Spaces/Int.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Require Export HoTT.Spaces.Int.Core.
22
Require Export HoTT.Spaces.Int.Spec.
33
Require Export HoTT.Spaces.Int.Equiv.
4-
Require Export HoTT.Spaces.Int.LoopExp.
4+
Require Export HoTT.Spaces.Int.LoopExp.

theories/Spaces/Pos.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Require Export HoTT.Spaces.Pos.Core.
2-
Require Export HoTT.Spaces.Pos.Spec.
2+
Require Export HoTT.Spaces.Pos.Spec.

0 commit comments

Comments
 (0)