[packages/rpm-build-tools] shrc: add rpm2spec shell function

glen glen at pld-linux.org
Sun Oct 7 00:01:08 CEST 2012


commit db7f931080a4ce4f8f402dbb73561769ca597846
Author: Elan Ruusamäe <glen at delfi.ee>
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



More information about the pld-cvs-commit mailing list