]> git.pld-linux.org Git - packages/rpm-build-tools.git/blobdiff - shrc.sh
shrc: add rpm2spec shell function
[packages/rpm-build-tools.git] / shrc.sh
diff --git a/shrc.sh b/shrc.sh
index dee20cfb26a2eefaa4f39f9272961d0c33de93a8..1c39f0088f591c472f50dadcb7529726caa10aa7 100755 (executable)
--- 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
This page took 0.508506 seconds and 4 git commands to generate.