diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-09-22 16:36:42 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-09-22 16:36:42 +0000 |
commit | 18b953acc63545125411b7c9a78f322339fbe7bd (patch) | |
tree | a86d66e65e6d4d8ef3e4e1b7a971a5310a9740bb | |
parent | a0f9afaf00cfb3399f80ecfa4e4d35f503b2035f (diff) | |
download | build-18b953acc63545125411b7c9a78f322339fbe7bd.tar.gz build-18b953acc63545125411b7c9a78f322339fbe7bd.tar.bz2 build-18b953acc63545125411b7c9a78f322339fbe7bd.tar.xz build-18b953acc63545125411b7c9a78f322339fbe7bd.zip |
Libbu++ get's a checkinst script, why can't build?
-rwxr-xr-x | checkinst.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/checkinst.sh b/checkinst.sh new file mode 100755 index 0000000..d6da889 --- /dev/null +++ b/checkinst.sh | |||
@@ -0,0 +1,10 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | CMD="ln -svf $PWD/build /usr/bin; ln -svf $PWD/bfilt-c++ /usr/bin" | ||
4 | |||
5 | if [ $UID == 0 ]; then | ||
6 | bash -c "$CMD" | ||
7 | else | ||
8 | echo This script needs root access... | ||
9 | su root -c "$CMD" | ||
10 | fi | ||