diff --git a/repo-mgmt b/repo-mgmt index 68b056b..8c3a97a 100755 --- a/repo-mgmt +++ b/repo-mgmt @@ -23,6 +23,31 @@ readonly APKBUILD_GIT_REPO_BASE="https://git.noveria.org/APKBUILD" # Miscellaneous functions ## +function usage() { + echo -e "Noveria Alpine Linux repository build management + +Usage: $(basename $0) [...] + +Operations: + Miscellaneous: + -h, --help Usage information + -p, --publish Publish files to webserver (not yet implemented) + --debug Start debug-container bash shell + --init Initialize local directories & abuild keys + + Podman: + -b, --build (Re)build podman image + + DB management: + -d, --delete Delete package + -r, --refresh Refresh APKINDEX with packages in repo + -s, --sign Sign APKINDEX with abuild private key + + Package management: + -k, --apkbuild Build binary package from APKBUILD and move to, refresh and sign local repository +" +} + function init_local() { if [[ ! -d "${BUILD_DIR}" || ! -d "${REPO_DIR}" || ! -d "${KEYS_DIR}" || ! -f "${PKG_LIST_FILE}" ]]; then message_blue_double_colon "Initializing local directories"