summaryrefslogtreecommitdiff
path: root/filebrowser/list_to_cubes.sh
blob: 815c001ce11ee62c91cdd261a02104153456850d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# blank lines deleteallexcept epoch
# expected input format:
#
# line1
# line2
# line3
#
# line1
# line2
while read -r line;do
 if [ "_$line" != '_' ];then
#  ../tools/obj2hackvr.pl "$line" ../meshes/cube.obj
  printf "%s addshape 3 8 0 0 0 8 0 0 0 0\n" "$line"
  cd ..
  printf "%s\n" "$line" | ./makelabel.sh "$line" 15 0 0
  cd filebrowser
  printf "%s move 0 %d 0 0 0 0 0 0 0\n" "$line" "$i"
  #somehow printf '%s\n' "$line" | ./testfont.sh and make its output belong to same group as $line.. sed?
  i=$[i+10]
 else
  printf "epoch deleteallexcept epoch\n"
  i=0
 fi
done