This Bash script simplifies package management tasks, including updating PKGBUILDs, upadting server repo, and more.
-
Clone the repository:
git clone https://github.com/tcet-opensource/tcet-linux-automation-scripts.git cd tcet-linux-automation-scripts
Make sure your function scripts (update_pkgbuild.sh, get_pkgbuild.sh, update_server.sh) are located in the same directory as the main script main_script.sh.
-
Make the main script executable:
chmod +x main.sh
-
Run the script:
./main.sh
The following function scripts are located in the same directory as the main script:
get_pkgbuild.sh
: This script updates a single PKGBUILD file. It prompts you to select the PKGBUILD file to update, then updates thepkgver
andpkgrel
values and runsmakepkg
.update_server.sh
: This script handles repository operations. It clones a specified repository, copies the new package to the repository, updates the repository database, and pushes the changes to the remote repository.update_pkgbuild.sh
: This script provides the update_pkgbuild function to update a PKGBUILD repository, including cleanup, changes addition, commit, push, and success confirmation.
- Make sure to update the repository URLs within the scripts to match your actual repository URLs.
- Ensure that you have necessary permissions to push changes to your repositories.