From db7f931080a4ce4f8f402dbb73561769ca597846 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 7 Oct 2012 00:58:41 +0300 Subject: [PATCH] shrc: add rpm2spec shell function --- shrc.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shrc.sh b/shrc.sh index dee20cf..1c39f00 100755 --- a/shrc.sh +++ b/shrc.sh @@ -309,6 +309,11 @@ d() { (builtin cd "$dir"; dif $diff{~,}) } +# spec name from NVR +rpm2spec() { + sed -re 's,^(.+)-[^-]+-[^-]+$,\1.spec,' +} + rpmb() { local SPEC SPECDIR arg for arg in "$@"; do -- 2.44.0