Upstream tarball 20080721
[amule.git] / src / utils / xas / autostart-xas.in
blob82711698737f9c9bed86e751af8c0b8e178db1f3
1 #!/bin/sh
3 # This file is part of the aMule project.
5 # Copyright (c) 2003-2006 aMule Project ( admin@amule.org / http://www.amule.org )
6 # Copyright (c) 2006-2008 Werner Mahr (Vollstrecker) ( amule@vollstreckernet.de )
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License
10 # as published by the Free Software Foundation; either
11 # version 2 of the License, or (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
23 prefix=@prefix@
24 exec_prefix=@exec_prefix@
25 xas_bin=@libdir@/xchat/plugins/xas.pl
27 if [ -z $xas_bin ] ; then
28 echo "xas.pl: Plugin not found"
29 exit 0
32 if [ -d ~/.xchat2 ] ; then
33 if [ -e ~/.xchat2/xas.pl ] ; then
34 rm ~/.xchat2/xas.pl
36 ln -s $xas_bin ~/.xchat2/xas.pl && echo "autostart successfully added"
37 if ps -A | grep -q xchat ; then
38 echo "You have to restart XChat to autoload xas.pl"
40 else
41 echo "XChat-Datadir not found"