aboutsummaryrefslogtreecommitdiff
path: root/packages/darwin_app/mkdocs
blob: 111b0a36d73cc0e38a97fa6084f176abeeaa47a0 (plain)
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
26
27
28
29
30
31
32
33
34
#!/bin/bash
dir=`basename "$1"`
y=0
count=0

echo "#N canvas 200 22 300 500 10;"

for eachitem in $1/*.pd
do
  let count=$count+1
done

let y=$count*25+50

echo "#N canvas 0 22 454 304 opendoc 0;"
echo "#X obj 35 66 symbol;"
echo "#X obj 34 38 inlet;"
echo "#X msg 35 90 \; pd open \\\$1 ../lib/pd/doc/$dir/ \;;"
echo "#X connect 0 0 2 0;"
echo "#X connect 1 0 0 0;"
echo "#X restore 50 $y pd opendoc;"

count=0

for eachitem in $1/*.pd
do
   name=`basename $eachitem`
   let y=25+$count*25
   msg="#X msg 50 $y $name;"
   let count=$count+1
   con="#X connect $count 0 0 0;"
   echo $msg
   echo $con
done