Browse Source

deploy: Tweaks README update function

master
creton32 3 months ago
parent
commit
929545daf9
  1. 22
      deploy

22
deploy

@ -1,11 +1,8 @@
#!/bin/sh
backup() {
xbps-query -m > pkglist.txt && echo "Package list updated!"
}
# Get custom templates and display them on project README
update_readme() {
local_pkgs=$(git diff --name-only upstream/master master srcpkgs/ | awk -F "/" '{print $2}' | sort | uniq)
local_pkgs="$(git diff --name-only upstream/master master srcpkgs/ | awk -F "/" '{print $2}' | sort | uniq)"
for pkg in $local_pkgs; do
new_pkgs="$new_pkgs* [$pkg](srcpkgs/$pkg)
@ -16,14 +13,7 @@ update_readme() {
This fork contains templates for the following list of packages:
${new_pkgs}
If you'd like to install all of them:
\`\`\`sh
git clone https://git.parata.xyz/eot/void-packages
./install
\`\`\`
Else, manually do (make sure to have \`xtools\` installed):
If you'd like to build and install all the custom templates, run \`./deploy --install\`. Else, if you only want a specific package, manually run (make sure to have [\`xtools\`](https:/github.com/leahneukirchen/xtools) installed):
\`\`\`sh
./xbps-src binary-bootstrap
@ -77,8 +67,6 @@ install() {
}
case "$1" in
install) install;;
update) update_readme;;
backup) backup;;
*) install;;
--install) install;;
--update) update_readme;;
esac
Loading…
Cancel
Save