From 128c7bb1e8f2c3f8edd5bc4523c7d2e6fded27ba Mon Sep 17 00:00:00 2001 From: siddontang Date: Mon, 18 Aug 2014 22:29:32 +0800 Subject: [PATCH] can run build_leveldb.sh more than once --- build_tool/build_leveldb.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build_tool/build_leveldb.sh b/build_tool/build_leveldb.sh index df918d5..dbf9979 100644 --- a/build_tool/build_leveldb.sh +++ b/build_tool/build_leveldb.sh @@ -12,7 +12,7 @@ mkdir -p $BUILD_DIR cd $BUILD_DIR if [ ! -f $SNAPPY_DIR/lib/libsnappy.a ]; then - (git clone https://github.com/siddontang/snappy.git && \ + (git clone https://github.com/siddontang/snappy.git ; \ cd ./snappy && \ autoreconf --force --install && \ ./configure --prefix=$SNAPPY_DIR && \ @@ -26,7 +26,7 @@ fi cd $BUILD_DIR if [ ! -f $LEVELDB_DIR/lib/libleveldb.a ]; then - (git clone https://github.com/siddontang/leveldb.git && \ + (git clone https://github.com/siddontang/leveldb.git ; \ cd ./leveldb && \ echo "echo \"PLATFORM_CFLAGS+=-I$SNAPPY_DIR/include\" >> build_config.mk" >> build_detect_platform && echo "echo \"PLATFORM_CXXFLAGS+=-I$SNAPPY_DIR/include\" >> build_config.mk" >> build_detect_platform &&