.
[egatrop.git] / install
blob7239328b4892d4cef568b1acc37e63226c0de39d
1 #!/bin/zsh
2 . common.shell
4 [[ $(id -u) == 0 ]] || DIE "No root..."
6 LOG "Installing egatrop to /opt/egatrop"
7 for d in lib ebuilds doc bin; do
8 [[ -d /opt/egatrop/$d ]] || mkdir -p /opt/egatrop/$d
9 cp -r $d /opt/egatrop/
10 done
11 for f in src include log; do
12 [[ -d /opt/egatrop/$f ]] || mkdir -p /opt/egatrop/$f
13 done
14 chmod -R aog+rx /opt/egatrop
15 chmod -R aog+rwx /opt/egatrop/src /opt/egatrop/log
17 #echo "PATH=$PATH:/opt/egatrop/lib"