diff options
author | epoch <epoch@hacking.allowed.org> | 2018-12-16 19:28:39 -0600 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2018-12-16 19:28:39 -0600 |
commit | f479b438e6119e83c95b19aaeccd61a8e5eded27 (patch) | |
tree | 726a3916d9128f6c970f49431ef8b27140e49747 /makelabel.sh | |
parent | 13dd5a6d313a2086647751286ca8315a12c804f1 (diff) | |
download | hackvr-f479b438e6119e83c95b19aaeccd61a8e5eded27.tar.gz hackvr-f479b438e6119e83c95b19aaeccd61a8e5eded27.zip |
fuck if I know. lots of shit. moved files.
Diffstat (limited to 'makelabel.sh')
-rwxr-xr-x | makelabel.sh | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/makelabel.sh b/makelabel.sh deleted file mode 100755 index e787c49..0000000 --- a/makelabel.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash -target="$1" -if grep ' ' <<<$1;then - echo 'fuck. no spaces in $1.' - exit 1 -fi -##target should not have any spaces or else it fucks shit up. >_>... oh well. hex encode it. -xoffset=$2 -yoffset=$3 -zoffset=$4 -if [ "_" = "_$xoffset" -o "_" = "_$yoffset" -o "_" = "_$zoffset" ];then - echo "missing an offset argument! wtf?" >&2 - exit 1 -fi -while read -rN 1 c;do - name="$(printf "%02x" "'$c")" - if [ "$name" = "0a" ]; then - xoffset=-6 - yoffset="$(printf '%d - %d\n' $yoffset 10 | bc)" - fi - if grep "^$name " font/font.hackvr 2>&1 > /dev/null;then #don't do this shit unless we actually have something to draw. awk in offsetshape bitches when there's nothing. - grep "^$name " font/font.hackvr \ - | sed 's/^'"$name"'/'"$target"'/' \ - | ./tools/offsetshape.sh "$xoffset" "$yoffset" "$zoffset" - fi - xoffset="$(printf '%d + %d\n' $xoffset 6 | bc)" -done |