post-update.stagit (425B)
- #!/bin/sh
- # SPDX-FileCopyrightText: 2017-2022 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- # SPDX-License-Identifier: MPL-2.0
- base=$(pwd|sed 's|\.git$||')
- update_f=' * Updating %s…'
- is_ok(){ echo ' [OK]'; }
- printf "$update_f" stagit
- mkdir -p ${base} && cd "${base}" && stagit -l 2048 "${base}.git" && is_ok
- printf "$update_f" stagit-index
- cd /git && stagit-index *.git mirror/*.git > /git/index.html && is_ok