port-jobs: Added script for converting between spaces and tabs

Former-commit-id: d3a1fcfcc5d9ddacfdbb3bae7726f978380e70ac
Former-commit-id: ab8e4e01699bbe2e98e33d11e24cce9aedf20a9e
This commit is contained in:
2023-04-14 14:07:06 -04:00
parent 92f26c47af
commit 8a0dd91201
2 changed files with 16 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
if [ "$1" = 'TABS' ]; then
unexpand -t 4 working/sshyp.py > working/sshyp.py.new
unexpand -t 4 working/sshync.py > working/sshync.py.new
else
expand -t 4 working/sshyp.py > working/sshyp.py.new
expand -t 4 working/sshync.py > working/sshync.py.new
fi
mv working/sshyp.py.new working/sshyp.py
mv working/sshync.py.new working/sshync.py
chmod +x working/sshyp.py working/sshync.py