summaryrefslogtreecommitdiff
path: root/build/clear.sh
blob: 25acba0ad3bc89092be4dd4a7eb039db818791a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

basedir="$(cd "$(dirname $0)"; pwd)"
manual_path="$(echo $basedir | sed "s:/build$::")"
build_path="$manual_path/build"
cd $build_path

if [ -z "$destdir" ]; then
    destdir="build.out"
fi

if [ -z "$tempdir" ]; then
    tempdir="build.tmp"
fi

rm -rf "$destdir"
rm -rf "$tempdir"