feat(docs): implement slice 8 documentation triad, man page, completions and Gitea Actions CI/CD
Build and Publish Release / test-and-release (push) Failing after 48s

This commit is contained in:
soda64 committed 2026-10-09 20:22:51 +02:00
1 parent c5c3b87bd9
commit 6f23f14b76
14 files changed
+1730 -10

No files matched your search

+23 -1
View File
@@ -63,6 +63,25 @@ do_install() {
cp "${SOURCE_ROOT}/bin/linux-backuper" "${BINDIR}/linux-backuper"
chmod 0755 "${BINDIR}/linux-backuper"
# Install man page
if [[ -f "${SOURCE_ROOT}/man/linux-backuper.8" ]]; then
mkdir -p "${PREFIX}/share/man/man8"
cp "${SOURCE_ROOT}/man/linux-backuper.8" "${PREFIX}/share/man/man8/linux-backuper.8"
chmod 0644 "${PREFIX}/share/man/man8/linux-backuper.8"
fi
# Install completions
if [[ -f "${SOURCE_ROOT}/completions/bash/linux-backuper" ]]; then
mkdir -p "${PREFIX}/share/bash-completion/completions"
cp "${SOURCE_ROOT}/completions/bash/linux-backuper" "${PREFIX}/share/bash-completion/completions/linux-backuper"
chmod 0644 "${PREFIX}/share/bash-completion/completions/linux-backuper"
fi
if [[ -f "${SOURCE_ROOT}/completions/zsh/_linux-backuper" ]]; then
mkdir -p "${PREFIX}/share/zsh/site-functions"
cp "${SOURCE_ROOT}/completions/zsh/_linux-backuper" "${PREFIX}/share/zsh/site-functions/_linux-backuper"
chmod 0644 "${PREFIX}/share/zsh/site-functions/_linux-backuper"
fi
echo "[SUCCESS] linux-backuper installed successfully to ${BINDIR}/linux-backuper"
echo "[INFO] Testing installed binary:"
"${BINDIR}/linux-backuper" --version || true
@@ -77,7 +96,10 @@ do_uninstall() {
echo "[INFO] Uninstalling linux-backuper..."
rm -f "${BINDIR}/linux-backuper"
rm -rf "${LIBDIR}"
echo "[SUCCESS] linux-backuper removed from ${BINDIR} and ${LIBDIR}."
rm -f "${PREFIX}/share/man/man8/linux-backuper.8"
rm -f "${PREFIX}/share/bash-completion/completions/linux-backuper"
rm -f "${PREFIX}/share/zsh/site-functions/_linux-backuper"
echo "[SUCCESS] linux-backuper removed from system."
echo "[NOTE] Backup storage at ${BACKUPDIR} and configuration at ${CONFDIR} were preserved."
}