aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authortrizen <trizen@protonmail.com>2020-10-31 13:50:31 +0200
committerJesús <heckyel@hyperbola.info>2020-11-09 17:33:57 -0500
commitf9ddea0669a5337f689107e8fc8980a4fb50ca65 (patch)
treeb381de8a4a838bfa8934921cc517b5a9375eafc8 /utils
parente4e52ab83ac73a3e581905487865149cdaf02a17 (diff)
downloadfair-viewer-f9ddea0669a5337f689107e8fc8980a4fb50ca65.tar.lz
fair-viewer-f9ddea0669a5337f689107e8fc8980a4fb50ca65.tar.xz
fair-viewer-f9ddea0669a5337f689107e8fc8980a4fb50ca65.zip
- Mention "pipe-viewer" in README. - Allow channel usernames in YouTube URLs to contain encoded characters of the form "%FF". - Removed some dead code.
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'utils')
-rwxr-xr-xutils/auto_perltidy.sh6
-rwxr-xr-xutils/bak_cleaner.sh3
2 files changed, 9 insertions, 0 deletions
diff --git a/utils/auto_perltidy.sh b/utils/auto_perltidy.sh
new file mode 100755
index 0000000..866dcfa
--- /dev/null
+++ b/utils/auto_perltidy.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+alias perltidy='perltidy -utf8 -l=127 -f -kbl=1 -bbb -bbc -bbs -b -ple -bt=2 -pt=2 -sbt=2 -bvt=0 -sbvt=1 -cti=1 -bar -lp -anl';
+which perltidy;
+cd ..;
+for i in $(git status | grep '^[[:cntrl:]]*modified:' | egrep 'bin/|\.(pm|t)$' | perl -nE 'say +(split)[-1]'); do echo $i; perltidy -b $i; done
diff --git a/utils/bak_cleaner.sh b/utils/bak_cleaner.sh
new file mode 100755
index 0000000..cb8340e
--- /dev/null
+++ b/utils/bak_cleaner.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+for i in $(git status | grep \.bak$ | perl -nE 'say +(split)[-1]'); do echo $i; rm $i; done