|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
# This file can be sourced in your .bashrc
|
|
|
|
|
|
|
|
|
|
TDE_BASEDIR=~/tde
|
|
|
|
|
TDE_VERSION=14.0.0
|
|
|
|
|
TDE_VERSION=14.0.1
|
|
|
|
|
TDE_GITBASESRC=${TDE_BASEDIR}/tde_r14
|
|
|
|
|
TDE_GITBASEPKG=${TDE_BASEDIR}/tde-packaging/redhat
|
|
|
|
|
TDE_TARBALLS=${TDE_BASEDIR}/tde-tarballs/${TDE_VERSION}
|
|
|
|
@ -19,7 +19,7 @@ export DIST="$( "${TDE_GITBASEPKG}/build/rpmdist.sh" --dist )"
|
|
|
|
|
alias cdrpm='cd ~/rpmbuild/RPMS/RPMS${DIST}'
|
|
|
|
|
|
|
|
|
|
# Build a single tarball (execute from GIT directory)
|
|
|
|
|
alias tdp4='TARGET=14.0.0 SUFFIX=0 TARBALL_DIR=${TDE_TARBALLS}/main COMPRESS=gzip ${TDE_GITBASESRC}/scripts/create_tarball'
|
|
|
|
|
alias tdp4='TARGET=14.0.1 SUFFIX=0 TARBALL_DIR=${TDE_TARBALLS}/main COMPRESS=gzip ${TDE_GITBASESRC}/scripts/create_tarball'
|
|
|
|
|
|
|
|
|
|
# Rebuild all tarballs
|
|
|
|
|
if [ -x /usr/bin/pigz ]; then
|
|
|
|
@ -38,17 +38,17 @@ grp3() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
grp4() {
|
|
|
|
|
build_rpm_package.sh "${1}" "14.0.0"
|
|
|
|
|
build_rpm_package.sh "${1}" "14.0.1"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Check if tarballs are more recent than installed packages
|
|
|
|
|
checknew() {
|
|
|
|
|
find ~/tde/tde-tarballs/14.0.0 -name "trinity-*.tar.gz" | while read f; do
|
|
|
|
|
find ~/tde/tde-tarballs/14.0.1 -name "trinity-*.tar.gz" | while read f; do
|
|
|
|
|
TAR="${f##*/}"
|
|
|
|
|
NAME="${TAR%-*}"
|
|
|
|
|
|
|
|
|
|
if rpm -q "${NAME}" &>/dev/null; then
|
|
|
|
|
set $(rpm -q --qf "%{name} 14.0.0 %{release}" ${NAME} )
|
|
|
|
|
set $(rpm -q --qf "%{name} 14.0.1 %{release}" ${NAME} )
|
|
|
|
|
B="$1-$2~${3#*_}"
|
|
|
|
|
A=${TAR%.tar.gz}
|
|
|
|
|
B=${B%.opt}
|
|
|
|
|