summaryrefslogtreecommitdiff
path: root/user/clang
diff options
context:
space:
mode:
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