2023-07-10 07:28:45 +00:00
|
|
|
echo off
|
|
|
|
clear
|
|
|
|
|
|
|
|
origin_dir=$(pwd)
|
|
|
|
|
|
|
|
echo origin path is $origin_dir
|
|
|
|
|
|
|
|
if [ -f ../../build/twain/Makefile ]; then
|
|
|
|
echo ""
|
|
|
|
else
|
|
|
|
mkdir ../../build
|
|
|
|
mkdir ../../build/twain
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd ../../build/twain
|
|
|
|
echo building path is $(pwd)
|
|
|
|
rm -rf ./*
|
|
|
|
cmake $origin_dir
|
|
|
|
make -j4
|
|
|
|
cd $origin_dir
|
|
|
|
|
2023-07-12 06:12:00 +00:00
|
|
|
echo -------copy DS to system directory ...-------
|
2023-07-10 07:28:45 +00:00
|
|
|
sudo cp ../../release/kylin/x86_64/libhgtwain.so /usr/local/lib/twain/libhgtwain.so.ds
|
|
|
|
|