From 420eeee620a287ac5bf133f8a17329a7182d5bbf Mon Sep 17 00:00:00 2001 From: epoch Date: Tue, 5 Feb 2019 21:48:29 -0600 Subject: forgot to add bin dir that contains a LOT of the handy stuff --- bin/line2hackvr.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 bin/line2hackvr.sh (limited to 'bin/line2hackvr.sh') diff --git a/bin/line2hackvr.sh b/bin/line2hackvr.sh new file mode 100755 index 0000000..7128026 --- /dev/null +++ b/bin/line2hackvr.sh @@ -0,0 +1,12 @@ +#!/bin/sh +#this is used on turn2line output +USAGE="usage: line2hackvr.sh name < turn2line-output" +if [ "_$1" = '_' ];then + echo $USAGE >&2 + exit 1 +fi +if [ "_$1" = "_-h" -o "_$1" = "_--help" -o "_$1" = "_-help" ];then + echo $USAGE + exit 0 +fi +xargs -L 1 printf "%s addshape 2 2 0 %d %d 0 %d %d\n" "$1" $line -- cgit v1.2.3