-
Notifications
You must be signed in to change notification settings - Fork 1
/
kmake
executable file
·55 lines (49 loc) · 1.6 KB
/
kmake
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
# ANDROID_HOME=~/.buildozer/android/platform/android-sdk-21
#ADB=$ANDROID_HOME/platform-tools/adb
# CLASSPATH=$ANDROID_HOME/platforms/android-14/android.jar
ADB=adb
set -x
#cd /media/JTC/planilla
git describe --tags > version.txt
# cd /media/JTC/java
# javac -classpath $CLASSPATH org/jtc/planilla/*.java
# jar -cf PlanillaHelper.jar org/jtc/planilla/*.class
# cd ~/kivy/JTC/;
# cp /media/JTC/planilla/*.{py,kv,csv,json,xml} .
# cp /media/JTC/planilla/version.txt .
# cp /media/JTC/planilla/service/*.py service
# cp /media/JTC/java/*.jar java
python -OO -m compileall -f -l .
if [ -n "$1" ]
then
echo argumento $1
FILES=`echo *.{pyo,kv,json} version.txt`
expect -c "
spawn /usr/bin/scp -r $FILES root@$1:/data/data/org.jtc.kbgallery/files/
expect {
"*password:*" { send "cunter38"\r\n; interact }
eof { exit }
}
exit
"
if [ -n "$2" ]
then
FILE=/home/toledo/$2
expect -c "
spawn /usr/bin/scp -r $FILE root@$1:/data/data/org.jtc.kbgallery/files/lib/python2.7/site-packages/kivy/uix
expect {
"*password:*" { send "cunter38"\r\n; interact }
eof { exit }
}
exit
"
fi
else
echo Falta dirección del ssh
fi
REJLOG="\[Logger|\[Factory|\[App|\[Win|\[GL|\[Shader|\[Support|\[Atlas|\[OSC|joyst|\[Text|\[Base|Android path|audio thread|Initialize|site-packages|bootstrap|Run user|cdrom"
$ADB shell am force-stop org.jtc.kbgallery
$ADB shell am start -n org.jtc.kbgallery/org.renpy.android.PythonActivity -a org.renpy.android.PythonActivity
$ADB logcat -c
$ADB logcat -s python | egrep -v "$REJLOG"