builder/post-receive

18 lines
500 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
PATH+=":/usr/local/bin"
self="${PWD##*/}"; self="${self%.git}"
self_url="https://pkg.fleshless.org/$self"
spark_repo=$(<spark.repo)
spark_repo_path="$HOME/public/$spark_repo"
sudo makepkg-overlay "$self_url" "$spark_repo_path"
cd "$spark_repo_path"
2017-11-17 21:15:16 +00:00
"$HOME/scripts/repo-sign" &> "$HOME/log/repo-sign.$spark_repo.log"
"$HOME/scripts/repo-clean" &> "$HOME/log/repo-clean.$spark_repo.log"
2017-11-17 21:15:16 +00:00
repo-add -n "$spark_repo.db.tar.gz" *.pkg.tar.xz &> "$HOME/log/repo-add.$spark_repo.log"