diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-04-25 16:37:54 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-04-25 16:37:54 +0000 |
commit | e5519957e1ec062edb801049c937936b38ec8d97 (patch) | |
tree | 9e99097c6704dbcdf3c6a1c452233e51f19c86a0 /trunk/mkbuild | |
parent | 9fd66b3f4d7053049ddc47604edb22db231a36ff (diff) | |
download | simplepkg-e5519957e1ec062edb801049c937936b38ec8d97.tar.gz simplepkg-e5519957e1ec062edb801049c937936b38ec8d97.tar.bz2 |
see CHANGELOG for details
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@499 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/mkbuild')
-rw-r--r-- | trunk/mkbuild/generic.mkSlackBuild | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/trunk/mkbuild/generic.mkSlackBuild b/trunk/mkbuild/generic.mkSlackBuild index 021374d..b8e4744 100644 --- a/trunk/mkbuild/generic.mkSlackBuild +++ b/trunk/mkbuild/generic.mkSlackBuild @@ -1,7 +1,7 @@ ################################################################# ## Generic template for SlackBuilds ## -## Version 0.9.8 - Luis ( luis at riseup d0t net) +## Version 0.9.9 - Luis ( luis at riseup d0t net) ## Alves ( rudsonalves at yahoo d0t com d0t br ) ################################################################# #!/bin/bash @@ -197,6 +197,10 @@ for patch in $patches; do patch -Np[[NUMBER OF PREFIX SLASHES TO STRIP]] < "$CWD/$patch" || exit $ERROR_PATCH elif [ -f "$CWD/patches/$patch" ]; then patch -Np[[NUMBER OF PREFIX SLASHES TO STRIP]] < "$CWD/patches/$patch" || exit $ERROR_PATCH + elif [ -f "$CWD/$patch.gz" ]; then + gzip -dc "$CWD/$patch.gz" | patch -Np[[NUMBER OF PREFIX SLASHES TO STRIP]] || exit $ERROR_PATCH + elif [ -f "$CWD/patches/$patch.gz" ]; then + gzip -dc "$CWD/patches/$patch.gz" | patch -Np[[NUMBER OF PREFIX SLASHES TO STRIP]] || exit $ERROR_PATCH fi done |