aboutsummaryrefslogtreecommitdiff
path: root/checkinst.sh
blob: f55bbea8b4c7e56c08156541c361c3ff91c19987 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

CMD="ln -svf $PWD/bu /usr/include; ln -svf $PWD/libbu++.a /usr/lib; ln -svf $PWD/{viewcsv,myriad} /usr/bin"

if [ $UID == 0 ]; then
	bash -c "$CMD"
else
	echo This script needs root access...
	su root -c "$CMD"
fi