From cf199f04ecde980ae12da660e10a2706e53e8d68 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Wed, 3 Oct 2018 09:36:53 +0900 Subject: [PATCH] Don't include Python demos on the ramdisk by default --- .gitignore | 1 + util/fix-python.sh | 5 +++++ {base/usr/share => util}/python-demos/about_applet.py | 0 {base/usr/share => util}/python-demos/button.py | 0 {base/usr/share => util}/python-demos/calculator.py | 0 {base/usr/share => util}/python-demos/clock.py | 0 {base/usr/share => util}/python-demos/dialog.py | 0 {base/usr/share => util}/python-demos/file_browser.py | 0 {base/usr/share => util}/python-demos/fswait.py | 0 {base/usr/share => util}/python-demos/icon_cache.py | 0 {base/usr/share => util}/python-demos/input_box.py | 0 {base/usr/share => util}/python-demos/menu_bar.py | 0 {base/usr/share => util}/python-demos/mines.py | 0 {base/usr/share => util}/python-demos/panel.py | 0 {base/usr/share => util}/python-demos/progress-bar.py | 0 {base/usr/share => util}/python-demos/text_region.py | 0 {base/usr/share => util}/python-demos/toaru_fonts.py | 0 {base/usr/share => util}/python-demos/toaru_theme.py | 0 {base/usr/share => util}/python-demos/weather_tool.py | 0 {base/usr/share => util}/python-demos/yutani.py | 0 {base/usr/share => util}/python-demos/yutani_mainloop.py | 0 21 files changed, 6 insertions(+) rename {base/usr/share => util}/python-demos/about_applet.py (100%) rename {base/usr/share => util}/python-demos/button.py (100%) rename {base/usr/share => util}/python-demos/calculator.py (100%) rename {base/usr/share => util}/python-demos/clock.py (100%) rename {base/usr/share => util}/python-demos/dialog.py (100%) rename {base/usr/share => util}/python-demos/file_browser.py (100%) rename {base/usr/share => util}/python-demos/fswait.py (100%) rename {base/usr/share => util}/python-demos/icon_cache.py (100%) rename {base/usr/share => util}/python-demos/input_box.py (100%) rename {base/usr/share => util}/python-demos/menu_bar.py (100%) rename {base/usr/share => util}/python-demos/mines.py (100%) rename {base/usr/share => util}/python-demos/panel.py (100%) rename {base/usr/share => util}/python-demos/progress-bar.py (100%) rename {base/usr/share => util}/python-demos/text_region.py (100%) rename {base/usr/share => util}/python-demos/toaru_fonts.py (100%) rename {base/usr/share => util}/python-demos/toaru_theme.py (100%) rename {base/usr/share => util}/python-demos/weather_tool.py (100%) rename {base/usr/share => util}/python-demos/yutani.py (100%) rename {base/usr/share => util}/python-demos/yutani_mainloop.py (100%) diff --git a/.gitignore b/.gitignore index 4062cae3..cf9e3b3a 100644 --- a/.gitignore +++ b/.gitignore @@ -27,6 +27,7 @@ /base/usr/python /base/usr/bin/* /base/usr/lib/* +/base/usr/share/python-demos # Generic /base/usr/share/aclocal diff --git a/util/fix-python.sh b/util/fix-python.sh index c86a98cb..1a7ad7cf 100755 --- a/util/fix-python.sh +++ b/util/fix-python.sh @@ -42,7 +42,12 @@ pushd $HDD_PATH/usr ln -s ../python/lib/libpython3.6m.so popd + popd echo "Installing readline hook..." cp util/readline._py $HDD_PATH/usr/python/lib/python3.6/ + +echo "Installing demos..." +mkdir -p base/usr/share/python-demos +cp util/python-demos/*.py base/usr/share/python-demos/ diff --git a/base/usr/share/python-demos/about_applet.py b/util/python-demos/about_applet.py similarity index 100% rename from base/usr/share/python-demos/about_applet.py rename to util/python-demos/about_applet.py diff --git a/base/usr/share/python-demos/button.py b/util/python-demos/button.py similarity index 100% rename from base/usr/share/python-demos/button.py rename to util/python-demos/button.py diff --git a/base/usr/share/python-demos/calculator.py b/util/python-demos/calculator.py similarity index 100% rename from base/usr/share/python-demos/calculator.py rename to util/python-demos/calculator.py diff --git a/base/usr/share/python-demos/clock.py b/util/python-demos/clock.py similarity index 100% rename from base/usr/share/python-demos/clock.py rename to util/python-demos/clock.py diff --git a/base/usr/share/python-demos/dialog.py b/util/python-demos/dialog.py similarity index 100% rename from base/usr/share/python-demos/dialog.py rename to util/python-demos/dialog.py diff --git a/base/usr/share/python-demos/file_browser.py b/util/python-demos/file_browser.py similarity index 100% rename from base/usr/share/python-demos/file_browser.py rename to util/python-demos/file_browser.py diff --git a/base/usr/share/python-demos/fswait.py b/util/python-demos/fswait.py similarity index 100% rename from base/usr/share/python-demos/fswait.py rename to util/python-demos/fswait.py diff --git a/base/usr/share/python-demos/icon_cache.py b/util/python-demos/icon_cache.py similarity index 100% rename from base/usr/share/python-demos/icon_cache.py rename to util/python-demos/icon_cache.py diff --git a/base/usr/share/python-demos/input_box.py b/util/python-demos/input_box.py similarity index 100% rename from base/usr/share/python-demos/input_box.py rename to util/python-demos/input_box.py diff --git a/base/usr/share/python-demos/menu_bar.py b/util/python-demos/menu_bar.py similarity index 100% rename from base/usr/share/python-demos/menu_bar.py rename to util/python-demos/menu_bar.py diff --git a/base/usr/share/python-demos/mines.py b/util/python-demos/mines.py similarity index 100% rename from base/usr/share/python-demos/mines.py rename to util/python-demos/mines.py diff --git a/base/usr/share/python-demos/panel.py b/util/python-demos/panel.py similarity index 100% rename from base/usr/share/python-demos/panel.py rename to util/python-demos/panel.py diff --git a/base/usr/share/python-demos/progress-bar.py b/util/python-demos/progress-bar.py similarity index 100% rename from base/usr/share/python-demos/progress-bar.py rename to util/python-demos/progress-bar.py diff --git a/base/usr/share/python-demos/text_region.py b/util/python-demos/text_region.py similarity index 100% rename from base/usr/share/python-demos/text_region.py rename to util/python-demos/text_region.py diff --git a/base/usr/share/python-demos/toaru_fonts.py b/util/python-demos/toaru_fonts.py similarity index 100% rename from base/usr/share/python-demos/toaru_fonts.py rename to util/python-demos/toaru_fonts.py diff --git a/base/usr/share/python-demos/toaru_theme.py b/util/python-demos/toaru_theme.py similarity index 100% rename from base/usr/share/python-demos/toaru_theme.py rename to util/python-demos/toaru_theme.py diff --git a/base/usr/share/python-demos/weather_tool.py b/util/python-demos/weather_tool.py similarity index 100% rename from base/usr/share/python-demos/weather_tool.py rename to util/python-demos/weather_tool.py diff --git a/base/usr/share/python-demos/yutani.py b/util/python-demos/yutani.py similarity index 100% rename from base/usr/share/python-demos/yutani.py rename to util/python-demos/yutani.py diff --git a/base/usr/share/python-demos/yutani_mainloop.py b/util/python-demos/yutani_mainloop.py similarity index 100% rename from base/usr/share/python-demos/yutani_mainloop.py rename to util/python-demos/yutani_mainloop.py