diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2018-03-01 14:04:09 +0100 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2018-03-01 14:04:09 +0100 |
commit | bf132093b67c42139f2ac2b935f3e9ed0777c222 (patch) | |
tree | d5bfcf69f2be5855b15f37eced139de689e49ebc /src/stage3/stage3.sh | |
parent | f65dc07b1bc6e22c31a871bc31e274b5bc92c5b8 (diff) |
happy little progress
Diffstat (limited to 'src/stage3/stage3.sh')
-rwxr-xr-x | src/stage3/stage3.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/stage3/stage3.sh b/src/stage3/stage3.sh index bd8457a..075412c 100755 --- a/src/stage3/stage3.sh +++ b/src/stage3/stage3.sh @@ -119,11 +119,10 @@ EOF fi done - # patch for cross-compiling - if [ -f "$_srcdir"/patches/$_pkgname.patch ]; then - cp PKGBUILD{,.old} + # patch if necessary + cp PKGBUILD{,.old} + [ -f "$_srcdir"/patches/$_pkgname.patch ] && \ patch -Np1 -i "$_srcdir"/patches/$_pkgname.patch - fi # substitute common variables _config="https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain" |