File: clear.sh

package info (click to toggle)
installation-guide 20150423
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 34,752 kB
  • sloc: xml: 89,779; sh: 1,099; perl: 427; awk: 199; makefile: 117; python: 101
file content (17 lines) | stat: -rwxr-xr-x 293 bytes parent folder | download | duplicates (9)
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"