From 47a3723632b82a0d3caf79dbe8ada1eae60dd976 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Sat, 25 Jul 2020 11:20:55 +0300 Subject: rename to cpt-extra --- repo/git/cpt-maintainer | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 repo/git/cpt-maintainer (limited to 'repo/git/cpt-maintainer') diff --git a/repo/git/cpt-maintainer b/repo/git/cpt-maintainer new file mode 100755 index 0000000..629a893 --- /dev/null +++ b/repo/git/cpt-maintainer @@ -0,0 +1,18 @@ +#!/bin/sh -ef +# Find the maintainer of a package + +# Copyright (C) 2019-2020 Dylan Araps. +# Copyright (C) 2929 Cem Keylan. +# Distributed under the terms of the MIT License + +case "$1" in ''|--help|-h) printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} " ; exit 0 ; esac + +kiss s "$1" | while read -r repo; do cd "$repo" + m=$(git log -1 version 2>/dev/null) ||: + m=${m##*Author: } + m=${m%%>*} + + [ "$m" ] || continue + + printf '=> %s\n%s>\n' "$PWD" "$m" +done -- cgit v1.2.3