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
11 for f
in src include log
; do
12 [[ -d /opt
/egatrop
/$f ]] || mkdir
-p /opt
/egatrop
/$f
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"