You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
899 B
31 lines
899 B
11 years ago
|
#!/bin/bash
|
||
|
|
||
|
PKGNAME="${1##*/}"
|
||
|
TDE_VERSION="${2:-14.0.0}"
|
||
|
|
||
|
INSTALLED=$(get_installed_package_version.sh ${PKGNAME})
|
||
|
TARBALL=$(get_latest_tarball_version.sh ${PKGNAME} ${TDE_VERSION})
|
||
|
SPEC=$(get_spec_version.sh ${PKGNAME} ${TDE_VERSION})
|
||
|
|
||
|
# Package containing "~" (e.g. R14 preversion tarballs):
|
||
|
if [ "${INSTALLED/\~/}" != "${INSTALLED}" ]; then
|
||
|
if [ "${INSTALLED#*\~}" = "${TARBALL#*\~}" ]; then
|
||
|
echo "Latest package '${PKGNAME}' version '${TARBALL}' is already built and installed."
|
||
|
exit 0
|
||
|
fi
|
||
|
else
|
||
|
# Other package (e.g. akode)
|
||
|
if [ "${INSTALLED%-*}" = "${TARBALL%-*}" ]; then
|
||
|
echo "Latest package '${PKGNAME}' version '${INSTALLED}' is already built and installed."
|
||
|
exit 0
|
||
|
fi
|
||
|
|
||
|
# Other package (e.g. QT3)
|
||
|
if [ "${INSTALLED}" = "${SPEC}" ]; then
|
||
|
echo "Latest package '${PKGNAME}' version '${INSTALLED}' is already built and installed."
|
||
|
exit 0
|
||
|
fi
|
||
|
fi
|
||
|
|
||
|
exit 1
|