aboutsummaryrefslogtreecommitdiffstats
path: root/blind-rotate-180
blob: 73cbd1530af26d886ef8196cc8ee59b2d8dddd70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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

flip="$(printf '%s\n' "$0" | sed 's/[^/]*$/blind-flip/')"
flop="$(printf '%s\n' "$0" | sed 's/[^/]*$/blind-flop/')"

"$flip" | "$flop"