[Lunar-commits] <lunar> misc.lunar: Readding source_basename, used by plugins like git and svn

Stefan Wold ratler at lunar-linux.org
Sat Feb 16 15:10:09 CET 2013


commit 60ef2e786cba525ff7647cf0789395e52476caad
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Sat, 16 Feb 2013 06:10:09 -0800
URL: https://github.com/lunar-linux/lunar/commit/60ef2e786cba525ff7647cf0789395e52476caad

misc.lunar: Readding source_basename, used by plugins like git and svn
---
  libs/misc.lunar | +4/-0     
  1 file changed, 4 insertions(+)

--- a/libs/misc.lunar
+++ b/libs/misc.lunar
@@ -213,6 +213,10 @@ last_kernel()
 	fi
 }
 
+source_basename()
+{
+  echo $1 | sed 's/.tar.\(bz2\|gz\|xz\)$//g'
+}
 
 xzbz_file()
 {




More information about the Lunar-commits mailing list