Skip to content

Commit

Permalink
Fix: 处理冲突,更新文件tongsuo.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
wessonli committed Oct 25, 2024
1 parent 80564e8 commit 78b5a1c
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions scripts/tongsuo.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#!/bin/bash
set -e

if [ -d $TONGSUO_PATH ]; then
echo "tongsuo already exists"
exit 0
fi

# determine package manager
determine_package_manager() {
if [ -f /etc/os-release ]; then
Expand Down Expand Up @@ -38,8 +33,19 @@ install_package() {
fi
}

wget --no-check-certificate https://github.com/Tongsuo-Project/Tongsuo/archive/refs/tags/8.3.2.tar.gz
tar zxvf 8.3.2.tar.gz > /dev/null
if [ -d $TONGSUO_PATH ]; then
echo "tongsuo already exists"
exit 0
fi

if ! [ -e 8.3.2.tar.gz ]; then
wget --no-check-certificate https://github.com/Tongsuo-Project/Tongsuo/archive/refs/tags/8.3.2.tar.gz
fi

if ! [ -d Tongsuo-8.3.2 ]; then
tar zxvf 8.3.2.tar.gz > /dev/null
fi

cd Tongsuo-8.3.2/

if [ "$IS_STATIC" == true ]; then
Expand All @@ -49,6 +55,5 @@ else
./config --prefix=$TONGSUO_PATH -fPIC
fi

# quiet output
make -j >/dev/null 2>&1
make install >/dev/null 2>&1
make -j
make install

0 comments on commit 78b5a1c

Please sign in to comment.