25 lines
425 B
Bash
Executable File
25 lines
425 B
Bash
Executable File
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
|
|
|
|
echo -------copy DS to system directory ...-------
|
|
sudo cp ../../release/kylin/x86_64/libhgtwain.so /usr/local/lib/twain/libhgtwain.so.ds
|
|
|