Installer script fixed for official installation
This commit is contained in:
parent
b1ee9b9119
commit
e8cda7d8e0
22
install.sh
22
install.sh
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue