commit db7f931080a4ce4f8f402dbb73561769ca597846
Author: Elan Ruusamäe <[email protected]>
Date:   Sun Oct 7 00:58:41 2012 +0300

    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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/89e05bdd0ae59197bdbd0369a7915e3b92d86af7

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to