aboutsummaryrefslogtreecommitdiff
path: root/common/hooks/post-extract
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2014-05-13 11:11:39 +0000
committerJuan RP <xtraeme@gmail.com>2014-05-13 11:11:39 +0000
commitf664734c7dba2a2cf66cc0925d333e31f9c02b22 (patch)
treec5a2df0e0a79d7ead7c3cd1622ddad609982a33a /common/hooks/post-extract
parent11ff18210aea1683b8273ad083b198b52575277d (diff)
downloadvoid-packages-f664734c7dba2a2cf66cc0925d333e31f9c02b22.tar
void-packages-f664734c7dba2a2cf66cc0925d333e31f9c02b22.tar.gz
void-packages-f664734c7dba2a2cf66cc0925d333e31f9c02b22.tar.bz2
void-packages-f664734c7dba2a2cf66cc0925d333e31f9c02b22.tar.lz
void-packages-f664734c7dba2a2cf66cc0925d333e31f9c02b22.tar.xz
void-packages-f664734c7dba2a2cf66cc0925d333e31f9c02b22.tar.zst
void-packages-f664734c7dba2a2cf66cc0925d333e31f9c02b22.zip
hooks/patches: accept patches with any .{diff,patch} name.
Diffstat (limited to 'common/hooks/post-extract')
-rw-r--r--common/hooks/post-extract/00-patches.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/common/hooks/post-extract/00-patches.sh b/common/hooks/post-extract/00-patches.sh
index c404c9bcb3e..ff9b07afb15 100644
--- a/common/hooks/post-extract/00-patches.sh
+++ b/common/hooks/post-extract/00-patches.sh
@@ -13,21 +13,21 @@ _process_patch() {
cp -f $i $wrksrc
# Try to guess if its a compressed patch.
- if $(echo $i|grep -q '.diff.gz'); then
+ if [[ $f =~ .diff*.gz ]]; then
gunzip $wrksrc/${_patch}
_patch=${_patch%%.gz}
- elif $(echo $i|grep -q '.patch.gz'); then
+ elif [[ $f =~ .patch*.gz ]]; then
gunzip $wrksrc/${_patch}
_patch=${_patch%%.gz}
- elif $(echo $i|grep -q '.diff.bz2'); then
+ elif [[ $f =~ .diff*.bz2 ]]; then
bunzip2 $wrksrc/${_patch}
_patch=${_patch%%.bz2}
- elif $(echo $i|grep -q '.patch.bz2'); then
+ elif [[ $f =~ .patch*.bz2 ]]; then
bunzip2 $wrksrc/${_patch}
_patch=${_patch%%.bz2}
- elif $(echo $i|grep -q '.diff'); then
+ elif [[ $f =~ .diff ]]; then
:
- elif $(echo $i|grep -q '.patch'); then
+ elif [[ $f =~ .patch ]]; then
:
else
msg_warn "$pkgver: unknown patch type: $i.\n"