jitty-scripts/symlinker.sh
mollusk 16828982c6 symplinker.sh: updated julia to 1.1.1
Former-commit-id: 018a1b3e7fa15694f5f27b1d7c2a4e7db8a2b847 [formerly 875a0cce700ca3b82858a2ac3fe1e6c44ed96f1e] [formerly 8281a1c938af34aa56958a133c584feefe684467] [formerly 555672e5daff9ed3ef626dc375ec397d0e4cba63 [formerly 555672e5daff9ed3ef626dc375ec397d0e4cba63 [formerly e8d932cfae366aa9188b4c1a531315f1da658a83]]]
Former-commit-id: 052d02b3db1071a8333ddfafe3ba62ef8a4eba5f [formerly b4a443b217675a71d41300780ea36a239e16c036] [formerly f791dc2f559c025cb5a270909424f25a0e6a1ae5]
Former-commit-id: 5034ec87b632b94886a16bccd864962065ccf4a6
Former-commit-id: e89aaeeb72f53d0926f0f28bb5c4c8cb5ece032e
2019-05-22 19:46:59 -07:00

117 lines
2.2 KiB
Bash
Executable File

#!/bin/bash
linkDir="/usr/bin"
function juliaLang(){
name="julia"
version="1.1.1"
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 papirusIconTheme(){
name="papirus-icons-installer.sh"
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;;
papirus)
papirusIconTheme
;;
svc )
svc;;
mic )
mic;;
trb)
trb;;
test )
echo ${linkDir};;
* ) printf "\n${0} <command>\n"
;;
esac