123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #!/bin/bash
- cd code_boost/src/build/
- if [ ${PWD##*/} = 'build' ]; then
-
- rm -rf ./*
- else
- echo "Error: The 'build' directory was not found."
- exit
- fi
- cmake ..
- if [ -f Makefile ]; then
- make
- else
- echo "Error: 'cmake' did not finish successfully."
- exit
- fi
- if [ $? -eq 0 ]; then
- cp libpcapreader.so ../../../code/ID2TLib/
- else
- echo "Error: 'make' did not finish successfully."
- exit
- fi
- cd ../../../
- cat >./id2t <<EOF
- #!/bin/sh
- ID2T_DIR=\$(readlink -f \$0)
- SCRIPT_PATH=\${ID2T_DIR%/*}
- cd \$SCRIPT_PATH
- exec ./code/CLI.py "\$@"
- EOF
- chmod +x ./code/CLI.py
- chmod +x ./id2t
- echo -e "\n\nAll is set. ID2T is ready."
- echo -e "\nRun ID2T with the command './id2t'"
|