Commit Graph

6 Commits

Author SHA1 Message Date
Krzesimir Nowak
0d06b737ac pkg-auto: Disable shellcheck reference warnings
Two warnings, SC2034 and SC2178, pop up very often with the references
- shellcheck handles them poorly and produces a ton of bogus warnings
about them. Silence the warnings and drop most of the "shellcheck
disable" clauses.
2025-04-29 09:43:21 +02:00
Krzesimir Nowak
b52676a64b pkg-auto: Add function for declaring structs
Declaring structs differs a bit from declaring typical variables in
that it takes one initializer and applies it to all the declared
variables.

Will be used a lot by upcoming libraries.
2025-04-29 09:43:20 +02:00
Krzesimir Nowak
3931cbff5f pkg-auto: Add a global variable name generator function
Some upcoming libraries will use this for their global variables. The
function is using a single counter, which ensures that the generated
names will be globally unique.
2025-04-29 09:43:20 +02:00
Krzesimir Nowak
cfd6a4057b pkg-auto: Move sets_split to util.sh
This will be used in other places, so make it available without
importing the big pkg_auto_lib.sh file.
2025-04-29 09:43:20 +02:00
Krzesimir Nowak
a75a5ed7bf pkg-auto: Strip only one space when printing help 2025-02-20 11:39:37 +01:00
Krzesimir Nowak
4c5e550055 pkg-auto: Add package automation scripts
This adds some scripts I have been using for over a year to deal with
the weekly package updates.

It comes with a `README.md` which describes a workflow similar to my
own.

The `sync_packages.sh` and `update_packages.sh` scripts are currently
not used anywhere. The idea behind them was to use them for Github
Action, but that will come as a follow-up PR.
2024-11-27 16:00:57 +01:00