updated re: archival of inks-scripts

This commit is contained in:
Solomon Laing 2023-02-11 15:27:39 +10:30
parent b2f9731e3b
commit 320f2c3f50
3 changed files with 37 additions and 55 deletions

7
arch/_old/README.md Normal file
View File

@ -0,0 +1,7 @@
# OLD
The graveyard for old parts of this project.
Entries:
* Sat Feb 11 03:26:07 PM ACDT 2023, my scripts are now just in my config in
`$HOME/.local/bin`.

View File

@ -41,14 +41,14 @@ function update_system {
echo "The system needs to be updated before this installation can happen. The upgrades will be applied without any user oversight which may be dangerous for out of date systems."
read -r -p "Are you sure you want to continue? [Y/n] " input
case $input in
[nN][oO] | [nN])
exit 0
;;
*)
# Make sure everything is up to date
echo "Making sure everything is up to date..."
yay -Syyu --noconfirm
;;
[nN][oO] | [nN])
exit 0
;;
*)
# Make sure everything is up to date
echo "Making sure everything is up to date..."
yay -Syyu --noconfirm
;;
esac
}
@ -79,15 +79,6 @@ function install_misc {
fi
}
# install my scripts
function install_scripts {
cd $working_dir
./install-scripts
if [ $? -eq 1 ]; then
exit 1
fi
}
function install_dmenu {
cd $working_dir
./install-dmenu-inkletblot
@ -115,20 +106,19 @@ function configure_system {
}
function help {
echo "Usage is:"
echo " setup <option> -- to start system setup from option"
echo " setup <option> only -- to only setup the specified option"
echo "Options (in order of execution):"
echo " yay : Install yay AUR helper"
echo " deps : Install the dependencies for my scripts and window manager"
echo " defaults : Install my chosen default programs"
echo " misc : Install my collection of misc - nice to have - programs"
echo " scripts : Install my scirpts"
echo " dmenu : Install my customised version of dmenu"
echo " dotfiles : Install my dotfiles to the system"
echo " configure : configure certain system files - BETA"
echo ""
echo "Note: it is expected that the initial run of this script lets each stage complete sucessfully."
echo "Usage is:"
echo " setup <option> -- to start system setup from option"
echo " setup <option> only -- to only setup the specified option"
echo "Options (in order of execution):"
echo " yay : Install yay AUR helper"
echo " deps : Install the dependencies for my scripts and window manager"
echo " defaults : Install my chosen default programs"
echo " misc : Install my collection of misc - nice to have - programs"
echo " dmenu : Install my customised version of dmenu"
echo " dotfiles : Install my dotfiles to the system"
echo " configure : configure certain system files - BETA"
echo ""
echo "Note: it is expected that the initial run of this script lets each stage complete sucessfully."
}
if [ "$1" = "help" ]; then
@ -146,11 +136,10 @@ case $1 in
install_dependencies
install_defaults
install_misc
install_scripts
install_dmenu
install_config
configure_system
;;
;;
yay)
if [ "$2" = "only" ]; then
install_yay
@ -159,12 +148,11 @@ case $1 in
install_dependencies
install_defaults
install_misc
install_scripts
install_dmenu
install_config
configure_system
fi
;;
;;
deps)
update_system
if [ "$2" = "only" ]; then
@ -173,12 +161,11 @@ case $1 in
install_dependencies
install_defaults
install_misc
install_scripts
install_dmenu
install_config
configure_system
fi
;;
;;
defaults)
update_system
if [ "$2" = "only" ]; then
@ -186,34 +173,22 @@ case $1 in
else
install_defaults
install_misc
install_scripts
install_dmenu
install_config
configure_system
fi
;;
;;
misc)
update_system
if [ "$2" = "only" ]; then
install_misc
else
install_misc
install_scripts
install_dmenu
install_config
configure_system
fi
;;
scripts)
if [ "$2" = "only" ]; then
install_scripts
else
install_scripts
install_dmenu
install_config
configure_system
fi
;;
;;
dmenu)
if [ "$2" = "only" ]; then
install_dmenu
@ -222,7 +197,7 @@ case $1 in
install_config
configure_system
fi
;;
;;
dotfiles)
if [ "$2" = "only" ]; then
install_config
@ -230,19 +205,19 @@ case $1 in
install_config
configure_system
fi
;;
;;
configure)
if [ "$2" = "only" ]; then
configure_system
else
configure_system
fi
;;
;;
*)
echo "Invalid input..."
help
exit 1
;;
;;
esac
if [ $? -eq 1 ]; then