aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Romanko <me@blankhex.com>2024-07-08 22:23:15 +0300
committerMikhail Romanko <me@blankhex.com>2024-07-09 11:21:07 +0300
commitebb78a48022d8c84bfc8b9c580918e47631e198e (patch)
tree5c9b598f8c92790dceb52a785b4b7516850f7303
parentd0cd2c4697605ca7260b1db428673b07676a20cb (diff)
downloadbhlib-old-ebb78a48022d8c84bfc8b9c580918e47631e198e.tar.gz
Add scripts to convert line ending format
-rw-r--r--scripts/dos2unix.sh2
-rw-r--r--scripts/unix2dos.sh2
2 files changed, 4 insertions, 0 deletions
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 {} \;