summaryrefslogtreecommitdiff
path: root/bin/line2hackvr.sh
blob: 71280268668613667221207b6096b637012a8e2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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