Skip to content

Commit 93de311

Browse files
committed
Create build directory unless it exists or clear it
1 parent 84b362d commit 93de311

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

build-example.sh.autosave

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
if [ ! -d build ];then
2+
mkdir build
3+
else
4+
rm -rf build/*
5+
fi
6+
7+
cd build
8+
qmake ../example/qhexedit.pro
9+
make
10+
cd ..

build-python-bindings.sh.autosave

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
if [ ! -d build ];then
2+
mkdir build
3+
else
4+
rm -rf build/*
5+
fi
6+
7+
cd build
8+
9+
# for Qt4 use qt4-qmake
10+
# /usr/share/qt4/bin/qmake ../src/qhexedit.pro
11+
12+
# for Qt5 use qt5-qmake
13+
/usr/lib/x86_64-linux-gnu/qt5/bin/qmake ../src/qhexedit.pro
14+
15+
sudo make
16+
cd ..
17+
18+
# for PyQt4 use python2 and PyQt4
19+
# sudo python2 setup.py install
20+
21+
# for PyQt5 use python3 and PyQt5
22+
sudo python3 setup.py install

0 commit comments

Comments
 (0)