git_post_push.sh (745B)
1 #!/usr/bin/env sh
2 # SPDX-License-Identifier: AGPL-3.0-or-later
3 # SPDX-FileCopyrightText: 2021-2024 JayVii <jayvii[AT]posteo[DOT]de>
4
5 # $1 - HTML Root
6 # $2 - prv/pub
7 # $3 - repo name
8 # $@ - optional list of refs, as given to post-update hook
9
10 # Error out if not all options are given
11 if [ -z "$3" ]; then
12 echo "Usage:
13 git_post_push.sh \\
14 \"/var/www/git.example.git\" \\
15 \"pub\" \\
16 \"stagit-scripts\" \\
17 \"\$@\" # optional paramaters given by post-push hook
18 "
19 exit 1;
20 fi
21
22 ~/bin/git_update_repo.sh "${1}" "${2}" "${3}"
23 ~/bin/git_export_tarball.sh "${1}" "${2}" "${3}" "${4}"
24 ~/bin/git_deploy.sh "${1}" "${2}" "${3}" "${4}"
25 ~/bin/git_update_repo_html.sh "${1}" "${2}" "${3}"
26 ~/bin/git_update_index_html.sh "${1}" "${2}"
27