aboutsummaryrefslogtreecommitdiffstats
path: root/blind-rotate-270
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-01-16 07:45:27 +0100
committerMattias Andrée <maandree@kth.se>2017-01-16 07:45:27 +0100
commit93f44ca841be46cc02f3c95a71c731804fc5fd81 (patch)
tree22a0b942aa0b1bbb5ce0a69591c2a57091513e4c /blind-rotate-270
parentUpdate todo (diff)
downloadblind-93f44ca841be46cc02f3c95a71c731804fc5fd81.tar.gz
blind-93f44ca841be46cc02f3c95a71c731804fc5fd81.tar.bz2
blind-93f44ca841be46cc02f3c95a71c731804fc5fd81.tar.xz
Add blind-rotate-90, blind-rotate-180, and blind-rotate-270
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'blind-rotate-270')
-rwxr-xr-xblind-rotate-27018
1 files changed, 18 insertions, 0 deletions
diff --git a/blind-rotate-270 b/blind-rotate-270
new file mode 100755
index 0000000..77305ca
--- /dev/null
+++ b/blind-rotate-270
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+if ! test $# = 0; then
+ if test "$1" = --; then
+ shift 1
+ fi
+ if ! test $# = 0; then
+ printf 'usage: %s\n' "$0" >&2
+ exit 1
+ fi
+fi
+
+transpose="$(printf '%s\n' "$0" | sed 's/[^/]*$/blind-transpose/')"
+flop="$( printf '%s\n' "$0" | sed 's/[^/]*$/blind-flop/')"
+
+"$flop" | "$transpose"