From 007cd8413ef34802b92d6e6df4384e9381a162c5 Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Wed, 30 Apr 2025 16:46:55 -0600 Subject: [PATCH] renamed and updated --- README.md | 51 ++++++++++---------- reinstall-esp-idf.sh => esp-idf-tools-cmd.sh | 4 +- help.txt | 46 +++++++++--------- todo.txt | 28 ----------- version.txt | 2 +- 5 files changed, 52 insertions(+), 79 deletions(-) rename reinstall-esp-idf.sh => esp-idf-tools-cmd.sh (99%) diff --git a/README.md b/README.md index 6ed7538..78d996b 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,9 @@ some features require user to have passwordless sudo rights Literally the most schizophrenically overengineered thing I have ever made. idk why I did that ## Quick start -`git clone https://github.com/PrincessPi3/esp-install-custom.git ~` -`bash ~/reinstall-esp-idf.sh` +`cd ~` +`git clone https://github.com/PrincessPi3/esp-idf-tools.git ~/esp-idf-tools` +`bash ~/esp-idf-tools/esp-idf-tools-cmd.sh` `source ~/.zshrc` `get_idf` @@ -40,57 +41,57 @@ Modes: default: reinstalls non-interactively with no delays, logouts, or reboots. run without any argument - bash reinstall-esp-idf.sh + bash esp-idf-tools-cmd.sh test: tests the script. very fast. minimal actions taken. no reinstall is done - bash reinstall-esp-idf.sh test - bash reinstall-esp-idf.sh t + bash esp-idf-tools-cmd.sh test + bash esp-idf-tools-cmd.sh t retool: reinstalls bins and export.sh, nothing else - bash reinstall-esp-idf.sh retool - bash reinstall-esp-idf.sh rt + bash esp-idf-tools-cmd.sh retool + bash esp-idf-tools-cmd.sh rt cron: runs noninteractively with forced user logout and automatic reboot, plus delays - bash reinstall-esp-idf.sh cron - bash reinstall-esp-idf.sh c + bash esp-idf-tools-cmd.sh cron + bash esp-idf-tools-cmd.sh c interactive: interactively installs/reinstalls esp-idf - bash reinstall-esp-idf.sh interactive - bash reinstall-esp-idf.sh i + bash esp-idf-tools-cmd.sh interactive + bash esp-idf-tools-cmd.sh i nuke: full delete and re-download and install - bash reinstall-esp-idf.sh nuke - bash reinstall-esp-idf.sh n + bash esp-idf-tools-cmd.sh nuke + bash esp-idf-tools-cmd.sh n clearlogs: clear logs - bash reinstall-esp-idf.sh clearlogs - bash reinstall-esp-idf.sh clear - bash reinstall-esp-idf.sh clean - bash reinstall-esp-idf.sh cl + bash esp-idf-tools-cmd.sh clearlogs + bash esp-idf-tools-cmd.sh clear + bash esp-idf-tools-cmd.sh clean + bash esp-idf-tools-cmd.sh cl help: display this help text - bash reinstall-esp-idf.sh help - bash reinstall-esp-idf.sh h - bash reinstall-esp-idf.sh -h - bash reinstall-esp-idf.sh --help + bash esp-idf-tools-cmd.sh help + bash esp-idf-tools-cmd.sh h + bash esp-idf-tools-cmd.sh -h + bash esp-idf-tools-cmd.sh --help uninstall: uninstall esp-idf - bash reinstall-esp-idf.sh uninstall + bash esp-idf-tools-cmd.sh uninstall ``` ## Ailases ``` run_esp_reinstall - Updates the esp-install-custom code via git, displays the script version, then executes reinstall-esp-idf.sh with optional arument. - Takes identical arguments to running reinstall-esp-idf.sh manually + Updates the esp-install-custom code via git, displays the script version, then executes esp-idf-tools-cmd.sh with optional arument. + Takes identical arguments to running esp-idf-tools-cmd.sh manually run_esp_reinstall run_esp_reinstall clean run_esp_reinstall nuke @@ -119,5 +120,5 @@ cron: reinstall from master everyday at 4am, logging out users with warn delays and rebooting after `crontab -e` - 0 4 * * * bash $HOME/esp/esp-install-custom/reinstall-esp-idf.sh cron + 0 4 * * * bash $HOME/esp/esp-install-custom/esp-idf-tools-cmd.sh cron ``` diff --git a/reinstall-esp-idf.sh b/esp-idf-tools-cmd.sh similarity index 99% rename from reinstall-esp-idf.sh rename to esp-idf-tools-cmd.sh index 71d796a..4bfd4a6 100644 --- a/reinstall-esp-idf.sh +++ b/esp-idf-tools-cmd.sh @@ -264,7 +264,7 @@ function testAppendAlias() { function handleAliasEnviron() { testAppendAlias "get_idf" "alias get_idf='. $exportScript'" - testAppendAlias "run_esp_reinstall" "alias run_esp_reinstall='git -C $runningDir pull;echo -e \"\nOld Version:\";tail -1 $versionData;echo -e \"\n\";bash $runningDir/reinstall-esp-idf.sh'" + testAppendAlias "run_esp_reinstall" "alias run_esp_reinstall='git -C $runningDir pull;echo -e \"\nOld Version:\";tail -1 $versionData;echo -e \"\n\";bash $runningDir/esp-idf-tools-cmd.sh'" testAppendAlias "esp_install_monitor" "alias esp_install_monitor='tail -n 75 -f $log'" testAppendAlias "esp_install_logs" "alias esp_install_logs='less $versionData;less $log'" @@ -353,7 +353,7 @@ handleReboot() { # warning not work how i make it work fuckin ell handleWarnAllUsers() { # writeToLog "Warning all users of impending logout (function called)\n" - warningString="\nWARNING:\n\tReinstalling esp-idf:\n\tForce logut in $sleepMins minutes!!\n\tSave and log out!\n\tmonitor with \`esp+monitor\`\n\tterminate with \`sudo killall reinstall-esp-idf.sh\`\n" + warningString="\nWARNING:\n\tReinstalling esp-idf:\n\tForce logut in $sleepMins minutes!!\n\tSave and log out!\n\tmonitor with \`esp+monitor\`\n\tterminate with \`sudo killall esp-idf-tools-cmd.sh\`\n" writeToLog "$warningString" diff --git a/help.txt b/help.txt index 4b410a3..b1d238a 100644 --- a/help.txt +++ b/help.txt @@ -1,50 +1,50 @@ Modes: default: reinstalls non-interactively with no delays, logouts, or reboots - `bash reinstall-esp-idf.sh` + `bash esp-idf-tools-cmd.sh` test: tests the script. very fast. minimal actions taken. no reinstall is done - `bash reinstall-esp-idf.sh test` - `bash reinstall-esp-idf.sh t` + `bash esp-idf-tools-cmd.sh test` + `bash esp-idf-tools-cmd.sh t` retool: reinstalls bins and export.sh, nothing else - `bash reinstall-esp-idf.sh retool` - `bash reinstall-esp-idf.sh rt` + `bash esp-idf-tools-cmd.sh retool` + `bash esp-idf-tools-cmd.sh rt` cron: runs noninteractively with forced user logout and automatic reboot, plus delays - `bash reinstall-esp-idf.sh cron` - `bash reinstall-esp-idf.sh c` + `bash esp-idf-tools-cmd.sh cron` + `bash esp-idf-tools-cmd.sh c` interactive: interactively installs/reinstalls esp-idf - `bash reinstall-esp-idf.sh interactive` - `bash reinstall-esp-idf.sh i` + `bash esp-idf-tools-cmd.sh interactive` + `bash esp-idf-tools-cmd.sh i` nuke: full delete and re-download and install - `bash reinstall-esp-idf.sh nuke` - `bash reinstall-esp-idf.sh n` + `bash esp-idf-tools-cmd.sh nuke` + `bash esp-idf-tools-cmd.sh n` clearlogs: clear logs - `bash reinstall-esp-idf.sh clearlogs` - `bash reinstall-esp-idf.sh clear` - `bash reinstall-esp-idf.sh clean` - `bash reinstall-esp-idf.sh cl` + `bash esp-idf-tools-cmd.sh clearlogs` + `bash esp-idf-tools-cmd.sh clear` + `bash esp-idf-tools-cmd.sh clean` + `bash esp-idf-tools-cmd.sh cl` help: display this help text - `bash reinstall-esp-idf.sh help` - `bash reinstall-esp-idf.sh h` - `bash reinstall-esp-idf.sh -h` - `bash reinstall-esp-idf.sh --help` + `bash esp-idf-tools-cmd.sh help` + `bash esp-idf-tools-cmd.sh h` + `bash esp-idf-tools-cmd.sh -h` + `bash esp-idf-tools-cmd.sh --help` uninstall: uninstall esp-idf - `bash reinstall-esp-idf.sh uninstall` + `bash esp-idf-tools-cmd.sh uninstall` Usage: @@ -82,8 +82,8 @@ Features: Aliases: run_esp_reinstall - Updates the esp-install-custom code via git, displays the script version, then executes reinstall-esp-idf.sh with optional arument. - Takes identical arguments to running reinstall-esp-idf.sh manually + Updates the esp-install-custom code via git, displays the script version, then executes esp-idf-tools-cmd.sh with optional arument. + Takes identical arguments to running esp-idf-tools-cmd.sh manually run_esp_reinstall run_esp_reinstall clean run_esp_reinstall nuke @@ -109,7 +109,7 @@ Helpful Stuff: reinstall from master everyday at 4am, logging out users with warn delays and rebooting after `crontab -e` add below to bottom of file: - 0 4 * * * bash $HOME/esp/esp-install-custom/reinstall-esp-idf.sh cron + 0 4 * * * bash $HOME/esp/esp-install-custom/esp-idf-tools-cmd.sh cron monitor log file during install: `tail -n 75 $ESPIDF_INSTALLDIR/install.log;` diff --git a/todo.txt b/todo.txt index 5bb28b2..bb45fb0 100644 --- a/todo.txt +++ b/todo.txt @@ -1,25 +1,3 @@ -test: - bash reinstall-esp-idf.sh help - bash reinstall-esp-idf.sh --help - bash reinstall-esp-idf.sh -h - bash reinstall-esp-idf.sh h - bash reinstall-esp-idf.sh test - bash reinstall-esp-idf.sh t - bash reinstall-esp-idf.sh retool - bash reinstall-esp-idf.sh rt - bash reinstall-esp-idf.sh - bash reinstall-esp-idf.sh clearlogs - bash reinstall-esp-idf.sh clear - bash reinstall-esp-idf.sh clean - bash reinstall-esp-idf.sh cl - bash reinstall-esp-idf.sh interactive - bash reinstall-esp-idf.sh i - bash reinstall-esp-idf.sh nuke - bash reinstall-esp-idf.sh n - bash reinstall-esp-idf.sh uninstall - bash reinstall-esp-idf.sh cron - bash reinstall-esp-idf.sh c - mayhaps support bash? # mayhaps it already works mayhaps? test @@ -28,12 +6,6 @@ figure out how to message users properly verbosity levels? less verbose on git commands and installers? - -get current esp-idf version plox - -document: - run_esp_reinstall - esp_install_monitor esp_install_logs possibly upgrade step-flash-monitor with better resets \ No newline at end of file diff --git a/version.txt b/version.txt index 605f192..9e40286 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -8-rc-3 +8-rc-4-dev