symlinker.sh: update julia to 1.0.2

Former-commit-id: ac178b34517a89f1a2c4d195d10b68b5eb070b30
Former-commit-id: 1b42341e3af2370dccabe092db09be3ca4421198
This commit is contained in:
mollusk 2018-11-13 03:27:40 -07:00
parent b70d2e0b43
commit 335430b358
2 changed files with 117 additions and 1 deletions

View File

@ -5,7 +5,7 @@ linkDir="/usr/local/bin"
function juliaLang(){
name="julia"
version="0.6.3"
version="1.0.2"
linkDir="${linkDir}"
if [ ! -f "${linkDir}/${name}" ];then

116
symlinker.sh~ Executable file
View File

@ -0,0 +1,116 @@
#!/bin/bash
linkDir="/usr/local/bin"
function juliaLang(){
name="julia"
version="1.0.2"
linkDir="${linkDir}"
if [ ! -f "${linkDir}/${name}" ];then
printf "\nLinking $(pwd)/${name}-${version}/bin/${name} to ${linkDir}\n"
ln -s $(pwd)/${name}-${version}/bin/${name} ${linkDir}/${name}
else
printf "\n${name} exists in ${linkDir}\n"
fi
}
function idd(){
name="idd"
linkDir="${linkDir}"
if [ ! -f "${linkDir}/${name}" ];then
printf "\nLinking ${pwd}/${name} to ${linkDir}\n"
ln -s $(pwd)/${name}.sh ${linkDir}/${name}
else
printf "${name} already exists in ${linkDir}\n"
fi
}
function loadsshkeys(){
name="loadsshkeys"
linkDir="${linkDir}"
if [ ! -f "${linkDir}/${name}" ];then
printf "\nLinking ${pwd}/${name} to ${linkDir}\n"
ln -s $(pwd)/${name}.sh ${linkDir}/${name}
else
printf "${name} already exists in ${linkDir}\n"
fi
}
function mic(){
name="staticmic"
linkDir="${linkDir}"
if [ ! -f "${linkDir}/${name}" ];then
printf "\nLinking ${pwd}/${name} to ${linkDir}\n"
ln -s $(pwd)/${name}.sh ${linkDir}/${name}
else
printf "${name} already exists in ${linkDir}\n"
fi
}
function svc(){
name="svc"
linkDir="${linkDir}"
if [ ! -f "${linkDir}/${name}" ];then
printf "\nLinking ${pwd}/${name} to ${linkDir}\n"
ln -s $(pwd)/${name}.sh ${linkDir}/${name}
else
printf "${name} already exists in ${linkDir}\n"
fi
}
function trb(){
name="trb"
linkDir="${linkDir}"
if [ ! -f "${linkDir}/${name}" ];then
printf "\nLinking ${pwd}/${name} to ${linkDir}\n"
ln -s $(pwd)/${name}.sh ${linkDir}/${name}
else
printf "${name} already exists in ${linkDir}\n"
fi
}
case "${1}" in
-r | --remove )
rm -v ${linkDir}/${2};;
julia )
juliaLang;;
idd )
idd;;
loadsshkeys)
loadsshkeys
;;
svc )
svc;;
mic )
mic;;
trb)
trb;;
test )
echo ${linkDir};;
* ) printf "\n${0} <command>\n"
;;
esac