From 93f44ca841be46cc02f3c95a71c731804fc5fd81 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 16 Jan 2017 07:45:27 +0100 Subject: Add blind-rotate-90, blind-rotate-180, and blind-rotate-270 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- blind-rotate-90 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 blind-rotate-90 (limited to 'blind-rotate-90') diff --git a/blind-rotate-90 b/blind-rotate-90 new file mode 100755 index 0000000..bbecc5b --- /dev/null +++ b/blind-rotate-90 @@ -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/')" + +"$transpose" | "$flop" -- cgit v1.2.3-70-g09d2