From 4f25b03c9ca587bcf8cdebf1ff79411fb90e8e4e Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 29 Jul 2019 08:39:40 +0300 Subject: [PATCH] compile: check for symlinked source --- compile.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/compile.sh b/compile.sh index c46b8edf..9a9bba13 100755 --- a/compile.sh +++ b/compile.sh @@ -15,8 +15,12 @@ fi # Cleanup libraries rm -rf android/lib/ -# Generate extras.pak -python xash3d-fwgs/scripts/makepak.py xash-extras android/assets/extras.pak +# Generate extras.pak(TODO: move this to waf somehow) +if [ -L "xash3d-fwgs-sl" ]; then + python xash3d-fwgs-sl/scripts/makepak.py xash-extras android/assets/extras.pak +else + python xash3d-fwgs/scripts/makepak.py xash-extras android/assets/extras.pak +fi # Generate configs android/gen-config.sh android/