mirror of
https://github.com/hasherezade/bearparser
synced 2026-06-08 14:32:38 +00:00
[NOBIN] Added an autobuild script
This commit is contained in:
Executable
+39
@@ -0,0 +1,39 @@
|
||||
#!/bin/bash
|
||||
echo "Trying to autobuild bearparser..."
|
||||
|
||||
#QT check
|
||||
QT_VER=`qmake -v`
|
||||
QTV="version 4."
|
||||
if echo "$QT_VER" | grep -q "$QTV"; then
|
||||
echo "[+] Qt4 found!"
|
||||
else
|
||||
echo "[-] Qt4 NOT found!"
|
||||
echo "Install qt-sdk first"
|
||||
exit -1
|
||||
fi
|
||||
|
||||
CMAKE_VER=`cmake --version`
|
||||
CMAKEV="cmake version"
|
||||
if echo "$CMAKE_VER" | grep -q "$CMAKEV"; then
|
||||
echo "[+] CMake found!"
|
||||
else
|
||||
echo "[-] CMake NOT found!"
|
||||
echo "Install cmake first"
|
||||
exit -1
|
||||
fi
|
||||
|
||||
mkdir bearparser
|
||||
cd bearparser
|
||||
git clone https://github.com/hasherezade/bearparser.git
|
||||
echo "[+] bearparser cloned"
|
||||
echo $$
|
||||
mv bearparser src
|
||||
mkdir build
|
||||
echo "[+] build directory created"
|
||||
cd build
|
||||
cmake -G "Unix Makefiles" ../src/
|
||||
make
|
||||
cd ..
|
||||
cp build/commander/bearcommander ./
|
||||
echo "[+] Success! You can check the executable here:"
|
||||
pwd
|
||||
Reference in New Issue
Block a user