Skip to content

Commit acba531

Browse files
committed
Add missing scripts to easily build on Linux.
1 parent 510652a commit acba531

File tree

5 files changed

+36
-0
lines changed

5 files changed

+36
-0
lines changed

build_debug.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
cmake -Bbuild/debug -H. -DCMAKE_BUILD_TYPE=Debug
4+
cd $PWD/build/debug
5+
make
6+

build_release.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
cmake -Bbuild/release -H. -DCMAKE_BUILD_TYPE=Release
4+
cd $PWD/build/release
5+
make
6+

clean.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
echo "Removing bin release files"
4+
rm -rf bin/release/*
5+
echo "Removing bin debug files"
6+
rm -rf bin/debug/*
7+
echo "Removing build release files"
8+
rm -rf build/release/*
9+
echo "Removing build debug files"
10+
rm -rf build/debug/*
11+
echo "Removing out files"
12+
rm -rf out/*
13+
echo "Done"

install.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
cd $PWD/build/release
4+
make install

valgrind.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
if [ -z "$1" ]
4+
then
5+
echo "No program specified"
6+
fi
7+
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes $1

0 commit comments

Comments
 (0)