pikapython/port/linux/std_push.sh

19 lines
557 B
Bash
Raw Normal View History

2022-04-13 13:23:45 +08:00
pkg=$1
cp package/pikascript/pikascript-lib/PikaStdLib ../../package/ -r
cp package/pikascript/$pkg.pyi ../../package/PikaStdLib/
2022-04-13 13:23:45 +08:00
git add package/pikascript/pikascript-lib/PikaStdLib
git add package/pikascript/$pkg.pyi
2022-04-13 13:23:45 +08:00
git add ../../package/PikaStdLib
2023-06-30 00:25:42 +08:00
# check if test/python/$pkg folder is exit
if [ -d "test/python/$pkg" ] ; then
echo "$FLAG_INFO python test files added:"
rm ../../examples/$pkg -rf
mkdir ../../examples/$pkg
cp test/python/$pkg/*.py ../../examples/$pkg -r
2023-07-06 23:09:49 +08:00
git add test/python/$pkg
2023-06-30 00:25:42 +08:00
git add ../../examples/$pkg
ls ../../examples/$pkg
fi