blob: 2afac59cd1a8e75ed28e7ec9b166a16f36795048 (
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
|
if [ "$1" = "" ]
then
echo "1st argument must be makesrna.so library"
exit
fi
if [ "$2" = "" ]
then
echo "2nd argument must be a path to rna headers"
exit
fi
adb shell < createnb.txt
adb push $1 /sdcard/nucleusbridge/libmakesrna.so
adb shell mkdir -p /sdcard/nucleusbridge/rna
while [ "$(adb shell ps | grep org.blender.play)" ];
do sleep 1; echo "Waiting DNA to finish"; done
adb shell am start -n org.blender.play/.makesActivity --es exec /sdcard/nucleusbridge/libmakesrna.so --es par1 /sdcard/nucleusbridge/rna/
while [ "$(adb shell ps | grep org.blender.play)" ];
do sleep 1; done
adb pull /sdcard/nucleusbridge/rna/ $2
adb shell rm -r /sdcard/nucleusbridge/
echo "RNA generation is complete"
|