updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / bedtools / bedtools.install
blob4baa223e861e3d94cb5d283eb79f191d3f289aa4
1 post_install() {
3   if [ -d /opt/bedtools/ ];then
4           for i in /opt/bedtools/*
5           do
6                           ln -sf $i /usr/local/bin
7           done
8   else
9           echo "Seems that you changed the default directory, you should create symbolic links to /usr/local/bin/ manually"
10   fi
14 post_upgrade() {
15   post_install $1
18 pre_remove() {
20   if [ -d /opt/bedtools/ ];then
21           cd /opt/bedtools/
22           for i in *
23           do
24                           rm -f /usr/local/bin/$i
25           done
26   else
28           echo "Seems that you changed the default directory, you should clean your symbolic links manually"
30   fi