Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=e4f94cd98f92c109ea7bb9ccc3855ac804db05ea
commit e4f94cd98f92c109ea7bb9ccc3855ac804db05ea
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date: Wed Oct 31 23:59:32 2007 +0100
util.sh: allow filenames like patch-version in Fpatch()
- basically if you use Fpatch directly then you know what you are doing, so we
won't check if the filename has a .diff or .patch* extension - you're a big
boy
- thx crazy for the idea
diff --git a/source/include/util.sh b/source/include/util.sh
index 0cce07a..927eb2b 100644
--- a/source/include/util.sh
+++ b/source/include/util.sh
@@ -445,9 +445,9 @@ Fpatch() {
Fcd
local i level="1"
Fmessage "Using patch: $1"
- if [ -n "`echo "$1" | grep '\.\(patch[0-9]*\|diff\)\.gz$'`" ]; then
+ if [ -n "`echo "$1" | grep '\.gz$'`" ]; then
i=`basename "$1" .gz`
- elif [ -n "`echo "$1" | grep '\.\(patch[0-9]*\|diff\)\.bz2$'`" ]; then
+ elif [ -n "`echo "$1" | grep '\.bz2$'`" ]; then
i=`basename "$1" .bz2`
else
i=$1
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git