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