summaryrefslogtreecommitdiff
path: root/user/clang
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2019-07-21 19:44:28 -0400
committerMax Rees <maxcrees@me.com>2019-07-21 19:44:28 -0400
commitdb4d737a2d883f7d3ff122fa3116afecb9942770 (patch)
treea829de67577a3c8dac8386d902d25de634117e1a /user/clang
parent94731625b42d0dfc0fd5111482938584b40c7478 (diff)
downloadpackages-db4d737a2d883f7d3ff122fa3116afecb9942770.tar.gz
packages-db4d737a2d883f7d3ff122fa3116afecb9942770.tar.bz2
packages-db4d737a2d883f7d3ff122fa3116afecb9942770.tar.xz
packages-db4d737a2d883f7d3ff122fa3116afecb9942770.zip
user/*: APKBUILD bashism removal, part one (a-p)
Diffstat (limited to 'user/clang')
-rw-r--r--user/clang/APKBUILD6
1 files changed, 3 insertions, 3 deletions
diff --git a/user/clang/APKBUILD b/user/clang/APKBUILD
index e5ed50d06..bd24476b8 100644
--- a/user/clang/APKBUILD
+++ b/user/clang/APKBUILD
@@ -47,7 +47,7 @@ build() {
make clang-tblgen
# too memory hungry
- if [ -z "$JOBS" -o $JOBS -gt 32 ]; then
+ if [ -z "$JOBS" ] || [ $JOBS -gt 32 ]; then
make -j32
else
make
@@ -71,13 +71,13 @@ package() {
mkdir -p "$pkgdir"/usr/lib/llvm$_llvmver/bin
mkdir -p "$pkgdir"/usr/lib/llvm$_llvmver/lib
for _dir in bin lib; do
- pushd "$pkgdir"/usr/$_dir
+ cd "$pkgdir"/usr/$_dir
for _file in *; do
[ -f $_file ] || continue
ln -s "../../../$_dir/$_file" \
"$pkgdir"/usr/lib/llvm$_llvmver/$_dir/$_file
done
- popd
+ cd "$OLDPWD"
done
# needed for at least Qt Creator