diff options
author | Que Quotion | 2019-11-20 05:29:25 +0900 |
---|---|---|
committer | Que Quotion | 2019-11-20 05:29:25 +0900 |
commit | 599af94f0c1290be8a6c845d5542038b7e98bc2a (patch) | |
tree | f3f047526efe71d7b9988f97615f4b09bfd75e5a | |
parent | 73fd705f2d9ef10f7c49f75b6cd09414b98acf26 (diff) | |
download | aur-599af94f0c1290be8a6c845d5542038b7e98bc2a.tar.gz |
Fix conditionals in pgo.sh.in
I will never understand how or why conditional statements in bash
stop working after a period of time and have to be rewritten,
doing exactly the same thing they did before, in slightly different
syntax. I've done this so many times I'm sure I've cycled over the
same syntax two or three times in some scripts. Makes no sense.
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 4 | ||||
-rw-r--r-- | pgo.sh.in | 6 |
3 files changed, 7 insertions, 7 deletions
@@ -1,6 +1,6 @@ pkgbase = makepkg-optimize pkgdesc = Supplemental build and packaging optimizations for makepkg - pkgver = 16 + pkgver = 17 pkgrel = 1 url = https://wiki.archlinux.org/index.php/Makepkg-optimize arch = any @@ -32,7 +32,7 @@ pkgbase = makepkg-optimize source = pkgopts_ext.conf source = pkgopts-param_ext.conf source = compress-param_max.conf - sha1sums = a9af81c30f57b7db6a9a52796d79399a4e754791 + sha1sums = ab3bca3309f1c083a61b7cd5783614f017ada14e sha1sums = 61c765080f3d41dbae15be9212667f9e6364550b sha1sums = d7a3801037333c582dba976db27cf8896bc1b401 sha1sums = c99d9cb49dd31924a1cb298bcfe142cef31a9fd3 @@ -2,7 +2,7 @@ # Contributor: bartus ( aur\at\bartus.33mail.com ) pkgname=makepkg-optimize -pkgver=16 +pkgver=17 pkgrel=1 pkgdesc='Supplemental build and packaging optimizations for makepkg' arch=('any') @@ -19,7 +19,7 @@ source=(${_buildenv[@]} ${_executable[@]} ${_tidy[@]} ${_conf[@]}) -sha1sums=('a9af81c30f57b7db6a9a52796d79399a4e754791' +sha1sums=('ab3bca3309f1c083a61b7cd5783614f017ada14e' '61c765080f3d41dbae15be9212667f9e6364550b' 'd7a3801037333c582dba976db27cf8896bc1b401' 'c99d9cb49dd31924a1cb298bcfe142cef31a9fd3' diff --git a/pgo.sh.in b/pgo.sh.in index 31f86121fd66..0df4437581c9 100644 --- a/pgo.sh.in +++ b/pgo.sh.in @@ -28,12 +28,12 @@ buildenv_pgo() { [[ "$INFAKEROOT" == 1 ]] && return - if [ ! -d "$PROFDEST/$pkgbase.gen" ]; then + if [[ ! -d $PROFDEST/$pkgbase.gen ]]; then pgoflags=" -fprofile-generate -fprofile-dir=$PROFDEST/$pkgbase.gen" pgoldflags=" -lgcov --coverage" msg2 "Profile data will be generated." - else - [[ ! -d "$PROFDEST/$pkgbase.used" ]] && mv "$PROFDEST/$pkgbase.gen" "$PROFDEST/$pkgbase.used" + elif [[ ! -d $PROFDEST/$pkgbase.used ]]; then + mv $PROFDEST/$pkgbase.{gen,used} pgoflags=" -fprofile-correction -fprofile-use -fprofile-dir=$PROFDEST/$pkgbase.used" msg2 "Profile data will be applied." fi |