euphoria-manager now checks for symlinks better
This commit is contained in:
parent
c37c5e88de
commit
5f3eda80d5
@ -33,7 +33,7 @@ fext="tar.gz"
|
|||||||
extcmd="tar"
|
extcmd="tar"
|
||||||
deps="curl"
|
deps="curl"
|
||||||
target_dir="/usr/local"
|
target_dir="/usr/local"
|
||||||
url="http://heanet.dl.sourceforge.net/project/rapideuphoria/Euphoria/${version}-${state}/euphoria-${version}-Linux-${arch}-57179171dbed.${fext}"
|
url="https://svwh.dl.sourceforge.net/project/rapideuphoria/Euphoria/${version}-${state}/${name}-${version}-Linux-${arch}-57179171dbed.${fext}"
|
||||||
tmpdir="/tmp"
|
tmpdir="/tmp"
|
||||||
|
|
||||||
check_deps(){
|
check_deps(){
|
||||||
@ -110,25 +110,23 @@ post_install(){
|
|||||||
ln -v -s ${target_dir}/${name}-${version}-Linux-${arch}/bin/eucoverage /usr/bin
|
ln -v -s ${target_dir}/${name}-${version}-Linux-${arch}/bin/eucoverage /usr/bin
|
||||||
}
|
}
|
||||||
|
|
||||||
|
symlinks=$(which {eui,euc,eutest,eudist,eudoc,eushroud,euloc,eudis,eubind,eub,echoversion,creole,eucoverage})
|
||||||
|
|
||||||
uninstall_pkg(){
|
uninstall_pkg(){
|
||||||
if [ ! -d ${target_dir}/${name}-${version}-Linux-${arch} ];then
|
if [ ! -d ${target_dir}/${name}-${version}-Linux-${arch} ];then
|
||||||
printf "${name}-${version} is not installed\n"
|
printf "${name}-${version} is not installed\n"
|
||||||
|
|
||||||
|
if [[ $symlinks ]];then
|
||||||
|
rm $symlinks
|
||||||
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
rm -v -r ${target_dir}/${name}-${version}-Linux-${arch}
|
rm -v -r ${target_dir}/${name}-${version}-Linux-${arch}
|
||||||
rm -v /usr/bin/eui
|
|
||||||
rm -v /usr/bin/euc
|
if [[ $symlinks ]];then
|
||||||
rm -v /usr/bin/eutest
|
rm $symlinks
|
||||||
rm -v /usr/bin/eudist
|
fi
|
||||||
rm -v /usr/bin/eudoc
|
|
||||||
rm -v /usr/bin/eushroud
|
|
||||||
rm -v /usr/bin/euloc
|
|
||||||
rm -v /usr/bin/eudis
|
|
||||||
rm -v /usr/bin/eubind
|
|
||||||
rm -v /usr/bin/eub
|
|
||||||
rm -v /usr/bin/echoversion
|
|
||||||
rm -v /usr/bin/creole
|
|
||||||
rm -v /usr/bin/eucoverage
|
|
||||||
|
|
||||||
if [ ! -d ${target_dir}/${name}-${version}-Linux-${arch} ];then
|
if [ ! -d ${target_dir}/${name}-${version}-Linux-${arch} ];then
|
||||||
echo
|
echo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user