builder/post-receive
fbt 10f43e7300 path
Signed-off-by: fbt <fbt@fleshless.org>
2017-11-17 22:19:31 +03:00

16 lines
408 B
Bash
Executable File

#!/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"
"$HOME/scripts/repo-sign" > "$HOME/log/repo-sign.$spark_repo.log"
"$HOME/scripts/repo-clean" > "$HOME/log/repo-clean.$spark_repo.log"