summaryrefslogtreecommitdiff
path: root/other/day1/make.sh
diff options
context:
space:
mode:
Diffstat (limited to 'other/day1/make.sh')
-rwxr-xr-xother/day1/make.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/other/day1/make.sh b/other/day1/make.sh
new file mode 100755
index 0000000..9b21833
--- /dev/null
+++ b/other/day1/make.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+for i in $(ls | grep .ms); do
+ groff -ms $i -e -Tps > $(echo $i | cut -f1 -d".").ps
+ ps2pdf $(echo $i | cut -f1 -d".").ps
+done
+
+if [ "$(tty)" = "/dev/tty1" ]; then
+ ps2ascii workexperience.ps 2> /dev/null | less -N
+else
+ zathura workexperience.pdf &
+fi