[Lunar-commits] CVS: theedge/var/lib/lunar/functions edit.lunar,
1.13, 1.14
Terry Chan
tchan at lunar-linux.org
Wed Feb 25 21:39:35 GMT 2004
Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory dbguin.lunar-linux.org:/tmp/cvs-serv3919
Modified Files:
edit.lunar
Log Message:
A temporary fix for grepping tar, bz2, gz in patch names. Only needed until
sofar has time to rewrite/correct this function properly.
Index: edit.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/edit.lunar,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- edit.lunar 25 Feb 2004 17:06:21 -0000 1.13
+++ edit.lunar 25 Feb 2004 21:39:33 -0000 1.14
@@ -18,15 +18,15 @@
patch_it () {
verbose_msg "patch_it \"$1\" \"$2\"";
- if [[ -n `echo $1 | grep .tar` ]] ; then
+ if [[ -n `echo $1 | grep '\.tar'` ]] ; then
TARCMD="tar x -O"
else
TARCMD="cat"
fi
- if [[ -n `echo $1 | grep .bz2` ]] ; then
+ if [[ -n `echo $1 | grep '\.bz2$'` ]] ; then
GZCMD="bzcat"
- elif [[ -n `echo $1 | grep .gz` ]] ; then
+ elif [[ -n `echo $1 | grep '\.gz$'` ]] ; then
GZCMD="zcat"
else
GZCMD="cat"
More information about the Lunar-commits
mailing list