misc/qtchooser: remove verbosity of update script

This commit is contained in:
Tobias C. Berner 2020-03-14 21:13:53 +00:00
parent a416cda096
commit f758d65851
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=528447
2 changed files with 1 additions and 7 deletions

View File

@ -2,7 +2,7 @@
PORTNAME= qtchooser
PORTVERSION= 66
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= misc
MASTER_SITES= QT/official_releases/${PORTNAME}
DIST_SUBDIR= KDE/Qt/qtchooser

View File

@ -25,7 +25,6 @@ if [ ! -x ${QTCHOOSER} ] ; then
fi
remove_links() {
echo "Removing qtchooser links"
for file in $(find -L ${BINDIR} -maxdepth 1 -samefile ${QTCHOOSER}) ; do
if [ ! -L ${file} ] ; then
continue
@ -42,28 +41,23 @@ remove_links() {
fi
done
if [ ${found} -eq 0 ] ; then
echo " ${file}"
rm ${file}
fi
done
echo "done"
}
create_links() {
echo "Creating qtchooser links"
for version in ${VERSIONS} ; do
version_bin_dir=${PREFIX}/lib/qt${version}/bin
if [ -d ${version_bin_dir} ] ; then
for file in $(find ${version_bin_dir} -type f -maxdepth 1) ; do
target=${BINDIR}/$(basename ${file})
if [ ! -L ${target} -a ! -f ${target} ] ; then
echo " ${target}"
ln -s ${QTCHOOSER} ${target}
fi
done
fi
done
echo "done"
}
remove_links