|
|
@ -30,7 +30,7 @@ else
|
|
|
|
#eval TARBALLS_DIR=~/tde/tde-tarballs/14.0.0
|
|
|
|
#eval TARBALLS_DIR=~/tde/tde-tarballs/14.0.0
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
clear
|
|
|
|
#clear
|
|
|
|
cat <<EOF
|
|
|
|
cat <<EOF
|
|
|
|
$(< /etc/redhat-release) [$(uname -m)]
|
|
|
|
$(< /etc/redhat-release) [$(uname -m)]
|
|
|
|
This script generates RPM of TDE from source tarball.
|
|
|
|
This script generates RPM of TDE from source tarball.
|
|
|
@ -123,8 +123,6 @@ About to build '${COMP}':
|
|
|
|
Spec file: '${SPEC}'
|
|
|
|
Spec file: '${SPEC}'
|
|
|
|
Tarball: '${TARBALL}'
|
|
|
|
Tarball: '${TARBALL}'
|
|
|
|
|
|
|
|
|
|
|
|
CCACHE_DIR='${CCACHE_DIR}'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Press ENTER to build, or CTRL+C to abort.
|
|
|
|
Press ENTER to build, or CTRL+C to abort.
|
|
|
|
EOF
|
|
|
|
EOF
|
|
|
|
[ -z "${AUTO}" ] && read rep
|
|
|
|
[ -z "${AUTO}" ] && read rep
|
|
|
@ -191,7 +189,6 @@ rpmbuild -ba \
|
|
|
|
echo "RET=$?"
|
|
|
|
echo "RET=$?"
|
|
|
|
) 2>&1 | tee ${LOGFILE}
|
|
|
|
) 2>&1 | tee ${LOGFILE}
|
|
|
|
eval "$(grep ^RET= ${LOGFILE})"
|
|
|
|
eval "$(grep ^RET= ${LOGFILE})"
|
|
|
|
set +x
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Removes temporary source directory
|
|
|
|
# Removes temporary source directory
|
|
|
|
rm -rf "${SOURCEDIR}"
|
|
|
|
rm -rf "${SOURCEDIR}"
|
|
|
@ -199,6 +196,7 @@ rm -rf "${SOURCEDIR}"
|
|
|
|
if [ "${RET}" -gt 0 ]; then
|
|
|
|
if [ "${RET}" -gt 0 ]; then
|
|
|
|
exit ${RET}
|
|
|
|
exit ${RET}
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
set +x
|
|
|
|
|
|
|
|
|
|
|
|
if grep -q "error: Failed build dependencies:" ${LOGFILE}; then
|
|
|
|
if grep -q "error: Failed build dependencies:" ${LOGFILE}; then
|
|
|
|
# DEPS=$( sed -n -e "/.* is needed by .*/ s/^[ \t]*\([a-zA-Z2-9_-]*\) .*/\1/p" ${LOGFILE} )
|
|
|
|
# DEPS=$( sed -n -e "/.* is needed by .*/ s/^[ \t]*\([a-zA-Z2-9_-]*\) .*/\1/p" ${LOGFILE} )
|
|
|
|