Installer script fixed for official installation

This commit is contained in:
Sameer Rahmani 2013-09-25 23:45:54 +03:30
parent b1ee9b9119
commit e8cda7d8e0
18 changed files with 15 additions and 7 deletions

View File

@ -7,8 +7,8 @@
VERSION=1.0.0 VERSION=1.0.0
remoteconffile="http://raw.github.com/Karajlug/KusoIDE/1.0/conf/dotkuso" remoteconffile="http://raw.github.com/Karajlug/KusoIDE/master/conf/dotkuso"
remoteexecutable="http://raw.github.com/Karajlug/KusoIDE/1.0/bin/kuso" remoteexecutable="http://raw.github.com/Karajlug/KusoIDE/master/bin/kuso"
conffile=conf/dotkuso conffile=conf/dotkuso
@ -77,8 +77,8 @@ while [ "$condition" == "1" ] ; do
if [ "$standalone" == "" -o "$standalone" == "y" ] if [ "$standalone" == "" -o "$standalone" == "y" ]
then then
standalone="y" standalone="y"
dotemacs=~/.kuso_dev dotemacs=~/.kuso
repo=~/.kuso.d_dev repo=~/.kuso.d
condition="0" condition="0"
executable=kuso executable=kuso
fi fi
@ -116,17 +116,25 @@ if [ -e $conffile ]
then then
info "Copying init files . . . " info "Copying init files . . . "
cp $conffile $dotemacs cp $conffile $dotemacs
cp bin/$executable $repo/$executable
if [ "$standalone" == "y" ]
then
cp bin/$executable $repo/$executable
fi
else else
info "Downloading init file and executable . . ." info "Downloading init file and executable . . ."
wget $remoteconffile -q -O $dotemacs wget $remoteconffile -q -O $dotemacs
wget $remoteexecutable -q -O $repo/$executable
if [ "$standalone" == "y" ]
then
wget $remoteexecutable -q -O $repo/$executable
fi
fi fi
if [ "$standalone" == "" -o "$standalone" == "y" ] if [ "$standalone" == "" -o "$standalone" == "y" ]
then then
info "Creating a link in globe PATH . . ." info "Creating a link in globe PATH . . ."
sudo ln -s $repo/$executable /usr/bin/$executable-dev sudo ln -s $repo/$executable /usr/bin/$executable
chmod +x $repo/$executable chmod +x $repo/$executable
fi fi