From 92e899cf56cf29fd1890b667b794f158fdb53dbc Mon Sep 17 00:00:00 2001 From: alfrix Date: Fri, 18 Nov 2022 13:38:20 -0300 Subject: [PATCH] scripts: update naming and remove unused --- docs/Android.md | 2 +- scripts/crop_images.sh | 13 ------------- .../{android-adb.sh => sample-android-adb.sh} | 0 ...h.EXAMPLE => sample-launch_klipperscreen.sh} | 0 scripts/update-python-venv.sh | 17 ----------------- 5 files changed, 1 insertion(+), 31 deletions(-) delete mode 100755 scripts/crop_images.sh rename scripts/{android-adb.sh => sample-android-adb.sh} (100%) rename scripts/{launch_klipperscreen.sh.EXAMPLE => sample-launch_klipperscreen.sh} (100%) mode change 100755 => 100644 delete mode 100755 scripts/update-python-venv.sh diff --git a/docs/Android.md b/docs/Android.md index 9e94c040..f606cdb0 100644 --- a/docs/Android.md +++ b/docs/Android.md @@ -28,7 +28,7 @@ search "how to enable android debugging on device-model-and-brand" ```bash cd ~/KlipperScreen/scripts -cp android-adb.sh launch_KlipperScreen.sh +cp sample-android-adb.sh launch_KlipperScreen.sh chmod +x launch_KlipperScreen.sh ``` diff --git a/scripts/crop_images.sh b/scripts/crop_images.sh deleted file mode 100755 index 5908e71e..00000000 --- a/scripts/crop_images.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" -IMGDIR=$SCRIPTPATH/../docs/img - -for file in $IMGDIR/* -do - res=$(identify $file | cut -d ' ' -f 3) - if [ "$res" != "1532x898" ]; then - echo "Converting $file" - convert $file -crop 1532x898+2+48 $file - fi -done diff --git a/scripts/android-adb.sh b/scripts/sample-android-adb.sh similarity index 100% rename from scripts/android-adb.sh rename to scripts/sample-android-adb.sh diff --git a/scripts/launch_klipperscreen.sh.EXAMPLE b/scripts/sample-launch_klipperscreen.sh old mode 100755 new mode 100644 similarity index 100% rename from scripts/launch_klipperscreen.sh.EXAMPLE rename to scripts/sample-launch_klipperscreen.sh diff --git a/scripts/update-python-venv.sh b/scripts/update-python-venv.sh deleted file mode 100755 index 67a7b12b..00000000 --- a/scripts/update-python-venv.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" -KSPATH=$(sed 's/\/scripts//g' <<< $SCRIPTPATH) -KSENV="${HOME}/.KlipperScreen-env" - -update_virtualenv() -{ - echo "Creating virtual environment" - [ ! -d ${KSENV} ] && virtualenv -p /usr/bin/python3 ${KSENV} - - ${KSENV}/bin/pip install -r ${KSPATH}/scripts/KlipperScreen-requirements.txt - ${KSENV}/bin/pip install --no-binary ":all" "vext.gi==0.7.4" - ${KSENV}/bin/vext -e -} - -update_virtualenv