aboutsummaryrefslogtreecommitdiff
path: root/common/hooks/post-extract
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2014-05-31 05:55:46 +0000
committerJuan RP <xtraeme@gmail.com>2014-05-31 05:55:46 +0000
commit093020bfc900ac1d1415a1b558e7dfe144c16c72 (patch)
treebb3b2cfbf89f317cd4ef3b5d64b66b043d40585b /common/hooks/post-extract
parent605ecb6a4aadb19dabe390d510f8376bc5868649 (diff)
downloadvoid-packages-093020bfc900ac1d1415a1b558e7dfe144c16c72.tar
void-packages-093020bfc900ac1d1415a1b558e7dfe144c16c72.tar.gz
void-packages-093020bfc900ac1d1415a1b558e7dfe144c16c72.tar.bz2
void-packages-093020bfc900ac1d1415a1b558e7dfe144c16c72.tar.lz
void-packages-093020bfc900ac1d1415a1b558e7dfe144c16c72.tar.xz
void-packages-093020bfc900ac1d1415a1b558e7dfe144c16c72.tar.zst
void-packages-093020bfc900ac1d1415a1b558e7dfe144c16c72.zip
hooks/patches: simplify.
Diffstat (limited to 'common/hooks/post-extract')
-rw-r--r--common/hooks/post-extract/00-patches.sh10
1 files changed, 2 insertions, 8 deletions
diff --git a/common/hooks/post-extract/00-patches.sh b/common/hooks/post-extract/00-patches.sh
index a6cc4afe16b..f512640aeae 100644
--- a/common/hooks/post-extract/00-patches.sh
+++ b/common/hooks/post-extract/00-patches.sh
@@ -13,16 +13,10 @@ _process_patch() {
cp -f $i $wrksrc
# Try to guess if its a compressed patch.
- if [[ $f =~ .diff.*.gz ]]; then
+ if [[ $f =~ .gz$ ]]; then
gunzip $wrksrc/${_patch}
_patch=${_patch%%.gz}
- elif [[ $f =~ .patch.*.gz ]]; then
- gunzip $wrksrc/${_patch}
- _patch=${_patch%%.gz}
- elif [[ $f =~ .diff.*.bz2 ]]; then
- bunzip2 $wrksrc/${_patch}
- _patch=${_patch%%.bz2}
- elif [[ $f =~ .patch.*.bz2 ]]; then
+ elif [[ $f =~ .bz2$ ]]; then
bunzip2 $wrksrc/${_patch}
_patch=${_patch%%.bz2}
elif [[ $f =~ .diff ]]; then