From ebb78a48022d8c84bfc8b9c580918e47631e198e Mon Sep 17 00:00:00 2001 From: Mikhail Romanko Date: Mon, 8 Jul 2024 22:23:15 +0300 Subject: Add scripts to convert line ending format --- scripts/dos2unix.sh | 2 ++ scripts/unix2dos.sh | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 scripts/dos2unix.sh create mode 100644 scripts/unix2dos.sh diff --git a/scripts/dos2unix.sh b/scripts/dos2unix.sh new file mode 100644 index 0000000..e2ac6ac --- /dev/null +++ b/scripts/dos2unix.sh @@ -0,0 +1,2 @@ +#!/bin/sh +find . \( -iname "*.h" -o -iname "*.c" \) -exec dos2unix {} \; diff --git a/scripts/unix2dos.sh b/scripts/unix2dos.sh new file mode 100644 index 0000000..2f68224 --- /dev/null +++ b/scripts/unix2dos.sh @@ -0,0 +1,2 @@ +#!/bin/sh +find . \( -iname "*.h" -o -iname "*.c" \) -exec unix2dos {} \; -- cgit v1.2.3