mirror of
https://github.com/kuhyx/scripts.git
synced 2026-07-04 13:03:05 +02:00
feat: added comments support
This commit is contained in:
parent
c3169aba9f
commit
219c76d6bb
@ -13,6 +13,8 @@ One package name per line:
|
||||
package1
|
||||
package2
|
||||
package3
|
||||
# This is a comment and will be ignored
|
||||
# Another comment
|
||||
```
|
||||
|
||||
### aur_packages.txt
|
||||
@ -20,8 +22,12 @@ Package name and repository URL separated by space:
|
||||
```
|
||||
package-name https://aur.archlinux.org/package-name.git
|
||||
another-package https://aur.archlinux.org/another-package.git
|
||||
# This is a comment and will be ignored
|
||||
# Another comment
|
||||
```
|
||||
|
||||
**Note**: Lines starting with anything other than lowercase letters (a-z) or digits (0-9) will be ignored as comments. This includes lines starting with `#`, spaces, uppercase letters, or special characters.
|
||||
|
||||
## Usage
|
||||
|
||||
The `main.sh` script will automatically read from these files:
|
||||
@ -33,4 +39,20 @@ The `main.sh` script will automatically read from these files:
|
||||
To add or remove packages:
|
||||
1. Edit the appropriate `.txt` file
|
||||
2. For AUR packages, ensure the format is correct (package-name followed by space and URL)
|
||||
3. Save the file - the script will automatically pick up changes on next run
|
||||
3. You can add comments by starting lines with `#` or any non-alphanumeric character
|
||||
4. Save the file - the script will automatically pick up changes on next run
|
||||
|
||||
### Comments
|
||||
You can add comments to organize your package lists:
|
||||
```
|
||||
# Essential packages
|
||||
git
|
||||
vim
|
||||
|
||||
# Development tools
|
||||
gcc
|
||||
make
|
||||
|
||||
# Optional packages (commented out)
|
||||
# some-package-i-might-want-later
|
||||
```
|
||||
|
||||
@ -81,7 +81,6 @@ python-cu2qu https://aur.archlinux.org/python-cu2qu.git
|
||||
psautohint https://aur.archlinux.org/psautohint.git
|
||||
python-inputs https://aur.archlinux.org/python-inputs.git
|
||||
python-steam https://aur.archlinux.org/python-steam.git
|
||||
protonup-qt https://aur.archlinux.org/protonup-qt.git
|
||||
protonhax-git https://aur.archlinux.org/protonhax-git.git
|
||||
nvm-git https://aur.archlinux.org/nvm-git.git
|
||||
unityhub https://aur.archlinux.org/unityhub.git
|
||||
@ -96,3 +95,4 @@ xpadneo-dkms-git https://aur.archlinux.org/xpadneo-dkms-git.git
|
||||
xone-dongle-firmware https://aur.archlinux.org/xone-dongle-firmware.git
|
||||
ferdium https://aur.archlinux.org/ferdium.git
|
||||
flite1 https://aur.archlinux.org/flite1.git
|
||||
protonup https://aur.archlinux.org/protonup-git.git
|
||||
@ -96,7 +96,10 @@ sudo systemctl start reflector.service
|
||||
# Read pacman packages from file
|
||||
declare -a pacman_packages
|
||||
while IFS= read -r line; do
|
||||
[[ -n "$line" ]] && pacman_packages+=("$line")
|
||||
# Skip empty lines and comments (lines not starting with alphanumeric characters)
|
||||
if [[ -n "$line" && "$line" =~ ^[a-z0-9] ]]; then
|
||||
pacman_packages+=("$line")
|
||||
fi
|
||||
done < "pacman_packages.txt"
|
||||
|
||||
for pkg in "${pacman_packages[@]}"; do
|
||||
@ -169,7 +172,10 @@ sudo systemctl start bluetooth.service
|
||||
# Read AUR packages from file
|
||||
declare -a aur_packages
|
||||
while IFS= read -r line; do
|
||||
[[ -n "$line" ]] && aur_packages+=("$line")
|
||||
# Skip empty lines and comments (lines not starting with alphanumeric characters)
|
||||
if [[ -n "$line" && "$line" =~ ^[a-z0-9] ]]; then
|
||||
aur_packages+=("$line")
|
||||
fi
|
||||
done < "aur_packages.txt"
|
||||
|
||||
for entry in "${aur_packages[@]}"; do
|
||||
@ -200,14 +206,9 @@ scripts/setup_media_organizer.sh
|
||||
scripts/setup_pc_startup_monitor.sh
|
||||
scripts/setup_periodic_system.sh
|
||||
scripts/setup_thorium_startup.sh
|
||||
protonup
|
||||
yes | sudo pacman -Syuu
|
||||
|
||||
# Installing unreal engine
|
||||
cd ~/aur
|
||||
if [ ! -d "$(basename https://aur.archlinux.org/unreal-engine.git .git)" ]; then
|
||||
git clone https://aur.archlinux.org/unreal-engine.git
|
||||
fi
|
||||
|
||||
#cd unreal-engine
|
||||
## gh auth login
|
||||
#gh repo clone EpicGames/UnrealEngine -- -b release --single-branch
|
||||
|
||||
@ -1,33 +1,53 @@
|
||||
# duh - using default linux for most compatibility
|
||||
linux
|
||||
# needed for compiling basically anything
|
||||
distcc
|
||||
# probably already installed at this point
|
||||
git
|
||||
# bluetooth
|
||||
bluez
|
||||
bluez-utils
|
||||
# faster make
|
||||
icmake
|
||||
# needed for some packages
|
||||
yodl
|
||||
texlive-plaingeneric
|
||||
docbook-xsl
|
||||
# open gl
|
||||
glu
|
||||
# sound
|
||||
pavucontrol-qt
|
||||
# faster compiling
|
||||
mold
|
||||
# faster unpacking
|
||||
zstd
|
||||
lz4
|
||||
xz
|
||||
pigz
|
||||
lbzip2
|
||||
# needed for some packages
|
||||
doxygen
|
||||
graphviz
|
||||
# programming languages needed for some packages
|
||||
tcl
|
||||
# ? Tool for optimizing the compression of PNG files
|
||||
pngcrush
|
||||
# compilers
|
||||
gcc-ada
|
||||
gcc-d
|
||||
# fonts for i3 ricing
|
||||
ttf-dejavu
|
||||
noto-fonts
|
||||
ttf-font-awesome
|
||||
# calculator
|
||||
bc
|
||||
# for battery - toDo ignore on desktop
|
||||
acpi
|
||||
# Programming language needed for some pakcages
|
||||
cargo
|
||||
# opengl api
|
||||
freeglut
|
||||
# Latex
|
||||
texlive-plaingeneric
|
||||
docbook-xsl
|
||||
graphviz
|
||||
texlive-latexextra
|
||||
biber
|
||||
texlive-bibtexextra
|
||||
@ -38,14 +58,23 @@ texlive-pstricks
|
||||
texlive-games
|
||||
texlive-humanities
|
||||
texlive-science
|
||||
# Node.js native addon build tool needed for some packages
|
||||
node-gyp
|
||||
# For writing uml diagrams - consider removing
|
||||
plantuml
|
||||
# dependency hell injector
|
||||
npm
|
||||
# generates man pages from markdown - consider removing
|
||||
ruby-ronn
|
||||
# for GO programming language
|
||||
go-tools
|
||||
# ? Posssibly required by some packages - consider removing
|
||||
asciidoctor
|
||||
# manuals
|
||||
man-db
|
||||
# git for large files like LLM
|
||||
git-lfs
|
||||
#
|
||||
nodejs
|
||||
electron
|
||||
yarn
|
||||
@ -250,5 +279,4 @@ gl2ps
|
||||
twolame
|
||||
yasm
|
||||
a52dec
|
||||
libtremor
|
||||
deluge
|
||||
Loading…
Reference in New Issue
Block a user