nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libevent: rename `bind_to` to the more precise `bind_tcp`
[nit.git]
/
share
/
android-bdwgc
/
setup.sh
diff --git
a/share/android-bdwgc/setup.sh
b/share/android-bdwgc/setup.sh
index
bcd931d
..
7ea0c27
100755
(executable)
--- a/
share/android-bdwgc/setup.sh
+++ b/
share/android-bdwgc/setup.sh
@@
-15,19
+15,14
@@
# Fetch libgc/bdwgc
# Fetch libgc/bdwgc
-# cd to the absolute installation path
-if expr match "$0" "^/.*"; then
- install="`dirname "$0"`"
-else
- install="`pwd`/`dirname "$0"`"
-fi
-cd $install
+# cd to the installation path
+cd "`dirname "${BASH_SOURCE[0]}"`"
# Download or redownload
rm -rf bdwgc
# Download or redownload
rm -rf bdwgc
-git clone -b android https://github.com/xymus/bdwgc.git || exit 1
+git clone --depth=1 -b android https://github.com/xymus/bdwgc.git || exit 1
# Setup libatomic_ops too
cd bdwgc || exit 1
git submodule init || exit 1
# Setup libatomic_ops too
cd bdwgc || exit 1
git submodule init || exit 1
-git submodule update || exit 1
+git submodule update --depth=1 || exit 1