Compare commits
No commits in common. "5f20148eb0e956a23b8d0f68b86fe83d8d9f2d22" and "4cb15b28f0fd026731e650073ceaf5c8a6c05ca0" have entirely different histories.
5f20148eb0
...
4cb15b28f0
2 changed files with 2 additions and 61 deletions
|
|
@ -9,16 +9,13 @@ Old customizer scripts for gnome
|
||||||
## nextcloud
|
## nextcloud
|
||||||
WIP - Install all missing needed modules for Nextcloud on a server
|
WIP - Install all missing needed modules for Nextcloud on a server
|
||||||
|
|
||||||
## solus_utility
|
|
||||||
Scripts specific to Solus
|
|
||||||
* Set up a Solus OS development environment (update needed)
|
|
||||||
|
|
||||||
## utility
|
## utility
|
||||||
Miscellaneous scripts, e.g. set screen brightness from command line (bug workaround)
|
Miscellaneous scripts, e.g. set screen brightness from command line (bug workaround)
|
||||||
|
|
||||||
## Other
|
## Other
|
||||||
* Backup and restore scripts for packages installed on Solus OS
|
* Backup and restore scripts for packages installed on Solus OS
|
||||||
* git_tidy_local_branches.sh - will remove local branches when the remote is gone # new
|
* Set up a Solus OS development environment (update needed)
|
||||||
|
* git_tidy_local_branches.sh - will remove local branches when the remote is gone # new saved
|
||||||
* Backup and restore scripts for Linux systems
|
* Backup and restore scripts for Linux systems
|
||||||
* obsidian_hide_inlineTitle.py - Change all Obsidian vaults to hide inline titles
|
* obsidian_hide_inlineTitle.py - Change all Obsidian vaults to hide inline titles
|
||||||
* obsidian_get_inlineTitle_values.py - Get the value of inlineTitle in all Obsidian vaults
|
* obsidian_get_inlineTitle_values.py - Get the value of inlineTitle in all Obsidian vaults
|
||||||
|
|
|
||||||
|
|
@ -1,56 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Update syncthing
|
|
||||||
|
|
||||||
echo "Running solus_update_syncthing. Remember to create a new branch"
|
|
||||||
|
|
||||||
source ~/.bashrc.d/solus-monorepo-helpers.sh
|
|
||||||
|
|
||||||
function get_package_ver {
|
|
||||||
|
|
||||||
local ver
|
|
||||||
ver="$(curl -s $latest_rel_url | jq -r .name)"
|
|
||||||
# ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values.
|
|
||||||
echo "${ver}"
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function set_recipe_url {
|
|
||||||
local tag_ver
|
|
||||||
tag_ver=$(get_package_ver $pkg)
|
|
||||||
local source_url
|
|
||||||
source_url="https://github.com/${owner}/${repo}/archive/refs/tags/${tag_ver}.tar.gz"
|
|
||||||
echo "${source_url}"
|
|
||||||
}
|
|
||||||
|
|
||||||
function get_ver_num {
|
|
||||||
local ver_string
|
|
||||||
ver_string=$(get_package_ver $pkg)
|
|
||||||
local ver_num
|
|
||||||
#TODO: if test to only trim if there's a v at the beginning of the string
|
|
||||||
ver_num="${ver_string:1}"
|
|
||||||
echo $ver_num
|
|
||||||
}
|
|
||||||
|
|
||||||
function clean_and_update {
|
|
||||||
echo "go-task update for $1 ver $2 url $3"
|
|
||||||
gotosoluspkgs
|
|
||||||
gotopkg "${1}"
|
|
||||||
git switch -c "update_${1}_${2}"
|
|
||||||
go-task clean
|
|
||||||
go-task update -- "${2}" "${3}"
|
|
||||||
# go-task # Probably don't want to do this
|
|
||||||
# TODO: chpwd ? To make shell stay in dir?
|
|
||||||
}
|
|
||||||
|
|
||||||
# TODO: Pass pkg, name, repo in as a variable to the script
|
|
||||||
pkg=syncthing
|
|
||||||
owner=syncthing
|
|
||||||
repo=syncthing
|
|
||||||
|
|
||||||
latest_rel_url=https://api.github.com/repos/${owner}/${repo}/releases/latest
|
|
||||||
|
|
||||||
pkg_ver=$(get_ver_num)
|
|
||||||
pkg_url=$(set_recipe_url $pkg)
|
|
||||||
clean_and_update "$pkg" "$pkg_ver" "$pkg_url"
|
|
||||||
echo "Complete. Run go-task in the package directory."
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue