[Lunar-commits] r21461 - lunar/trunk/var/lib/lunar/functions
Auke Kok
sofar at lunar-linux.org
Thu Sep 21 03:33:29 UTC 2006
Author: sofar
Date: 2006-09-21 03:33:29 +0000 (Thu, 21 Sep 2006)
New Revision: 21461
Modified:
lunar/trunk/var/lib/lunar/functions/misc.lunar
Log:
helper function strips off .tar.bz2 or .tar.gz
Modified: lunar/trunk/var/lib/lunar/functions/misc.lunar
===================================================================
--- lunar/trunk/var/lib/lunar/functions/misc.lunar 2006-09-21 03:32:37 UTC (rev 21460)
+++ lunar/trunk/var/lib/lunar/functions/misc.lunar 2006-09-21 03:33:29 UTC (rev 21461)
@@ -166,3 +166,9 @@
cat -
fi
}
+
+
+source_basename()
+{
+ echo $1 | sed 's/.tar.\(bz2\|gz\)$//g'
+}
More information about the Lunar-commits
mailing list