Skip to content
This repository was archived by the owner on Jan 18, 2024. It is now read-only.

Commit 27f0cc9

Browse files
committed
Update qpython*.sh
1 parent 4c6245a commit 27f0cc9

File tree

4 files changed

+65
-4
lines changed

4 files changed

+65
-4
lines changed

mk/qpyc3/bin/qpython3-android5-root.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
#!/system/bin/sh
22
DIR=${0%/*}
3-
test=$DIR'/init.sh && '$DIR'/python3-android5 '"$@"' && '$DIR'/end.sh'
3+
if [ -z "$1" ]; then
4+
5+
test=$DIR'/init.sh && '$DIR'/python3-android5 && '$DIR'/bend.sh'
6+
7+
else
8+
is_web=`grep "#qpy:webapp" $1`
9+
is_qapp1=`grep "#qpy:qpyapp" $1`
10+
is_qapp2=`grep "#qpy:qpysrv" $1`
11+
12+
if [ -z "${is_web}" ] && [ -z "${is_qapp1}" ] && [ -z "${is_qapp2}" ]; then
13+
test=$DIR'/init.sh && '$DIR'/python3-android5 '"$@"' && '$DIR'/bend.sh'
14+
else
15+
test=$DIR'/init.sh && '$DIR'/python3-android5 '"$@"' && '$DIR'/send.sh'
16+
fi
17+
fi
18+
419
cat $DIR/init.sh > $DIR/python3-android5-root
520
echo '\n' >> $DIR/python3-android5-root
621
echo $test >> $DIR/python3-android5-root

mk/qpyc3/bin/qpython3-android5.sh

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
11
#!/system/bin/sh
22
DIR=${0%/*}
3-
. $DIR/init.sh && $DIR/python3-android5 "$@" && $DIR/end.sh
3+
4+
if [ -z "$1" ]; then
5+
6+
. $DIR/init.sh && $DIR/python3-android5 && $DIR/bend.sh
7+
8+
else
9+
10+
is_web=`grep "#qpy:webapp" $1`
11+
is_qapp1=`grep "#qpy:qpyapp" $1`
12+
is_qapp2=`grep "#qpy:qpysrv" $1`
13+
14+
if [ -z "${is_web}" ] && [ -z "${is_qapp1}" ] && [ -z "${is_qapp2}" ]; then
15+
16+
. $DIR/init.sh && $DIR/python3-android5 "$@" && $DIR/bend.sh
17+
18+
else
19+
20+
. $DIR/init.sh && $DIR/python3-android5 "$@" && $DIR/send.sh
21+
22+
fi
23+
24+
fi

mk/qpyc3/bin/qpython3-root.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
#!/system/bin/sh
22
DIR=${0%/*}
3-
test=$DIR'/init.sh && '$DIR'/python3 '"$@"' && '$DIR'/end.sh'
3+
if [ -z "$1" ]; then
4+
test=$DIR'/init.sh && '$DIR'/python3 && '$DIR'/bend.sh'
5+
else
6+
is_web=`grep "#qpy:webapp" $1`
7+
is_qapp1=`grep "#qpy:qpyapp" $1`
8+
is_qapp2=`grep "#qpy:qpysrv" $1`
9+
10+
if [ -z "${is_web}" ] && [ -z "${is_qapp1}" ] && [ -z "${is_qapp2}" ]; then
11+
test=$DIR'/init.sh && '$DIR'/python3 '"$@"' && '$DIR'/bend.sh'
12+
else
13+
test=$DIR'/init.sh && '$DIR'/python3 '"$@"' && '$DIR'/send.sh'
14+
fi
15+
fi
16+
17+
418
cat $DIR/init.sh > $DIR/python3-root
519
echo '\n' >> $DIR/python3-root
620
echo $test >> $DIR/python3-root

mk/qpyc3/bin/qpython3.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
#!/system/bin/sh
22
DIR=${0%/*}
3-
. $DIR/init.sh && $DIR/python3 "$@" && $DIR/end.sh
3+
if [ -z "$1" ]; then
4+
. $DIR/init.sh && $DIR/python3 "$@" && $DIR/bend.sh
5+
else
6+
is_web=`grep "#qpy:webapp" $1`
7+
is_qapp1=`grep "#qpy:qpyapp" $1`
8+
is_qapp2=`grep "#qpy:qpysrv" $1`
49

10+
if [ -z "${is_web}" ] && [ -z "${is_qapp1}" ] && [ -z "${is_qapp2}" ]; then
11+
. $DIR/init.sh && $DIR/python3 "$@" && $DIR/bend.sh
12+
else
13+
. $DIR/init.sh && $DIR/python3 "$@" && $DIR/send.sh
14+
fi
15+
fi

0 commit comments

Comments
 (0)