SPECS: builder - experimental xtitle stuff
glen
glen at pld-linux.org
Mon Nov 28 20:41:15 CET 2005
Author: glen Date: Mon Nov 28 19:41:15 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- experimental xtitle stuff
---- Files affected:
SPECS:
builder (1.351 -> 1.352)
---- Diffs:
================================================================
Index: SPECS/builder
diff -u SPECS/builder:1.351 SPECS/builder:1.352
--- SPECS/builder:1.351 Fri Nov 25 12:33:51 2005
+++ SPECS/builder Mon Nov 28 20:41:10 2005
@@ -271,7 +271,7 @@
-U, --update - refetch sources, don't use distfiles, and update md5 comments
-Upi, --update-poldek-indexes
- refresh or make poldek package index files.
--np, --nopatch <patchnumber>
+-np, --nopatch <patchnumber>
- don't apply <patchnumber>
--show-bconds - show available conditional builds, which can be used
- with --with and/or --without switches.
@@ -285,6 +285,17 @@
"
}
+update_shell_title() {
+ case "$TERM" in
+ cygwin|xterm*)
+ echo -ne "\033]1;builder: $*\007\033]2;builder: $*\007"
+ ;;
+ screen*)
+ echo -ne "\033]0;builder: $*\007"
+ ;;
+ esac
+}
+
# set TARGET from BuildArch: from SPECFILE
set_spec_target() {
if [ -n "$SPECFILE" ] && [ -z "$TARGET" ]; then
@@ -327,6 +338,7 @@
parse_spec()
{
+ update_shell_title "parse_spec: $SPECFILE"
if [ -n "$DEBUG" ]; then
set -x;
set -v;
@@ -437,6 +449,9 @@
get_spec()
{
+
+ update_shell_title "get_spec: $SPECFILE"
+
if [ -n "$DEBUG" ]; then
set -x;
set -v;
@@ -603,6 +618,7 @@
get_files()
{
GET_FILES="$@"
+ update_shell_title "get_files: $@"
if [ -n "$DEBUG" ]; then
set -x;
@@ -892,6 +908,7 @@
build_package()
{
+ update_shell_title "build_package: $SPECFILE"
if [ -n "$DEBUG" ]; then
set -x;
set -v;
@@ -900,6 +917,7 @@
cd "$SPECS_DIR"
if [ -n "$TRY_UPGRADE" ]; then
+ update_shell_title "build_package: try_upgrade: $SPECFILE"
if [ -n "$FLOAT_VERSION" ]; then
TNOTIFY=`./pldnotify.awk $SPECFILE -n` || exit 1
else
@@ -936,6 +954,8 @@
build-prep )
BUILD_SWITCH="-bp --nodeps" ;;
esac
+
+ update_shell_title "build_package: $COMMAND: $SPECFILE"
if [ -n "$LOGFILE" ]; then
LOG=`eval echo $LOGFILE`
if [ -d "$LOG" ]; then
@@ -984,6 +1004,8 @@
set_bconds_values()
{
+ update_shell_title "set_bconds_values: $SPECFILE"
+
AVAIL_BCONDS_WITHOUT=""
AVAIL_BCONDS_WITH=""
if `grep -q ^%bcond ${SPECFILE}`; then
@@ -1246,6 +1268,7 @@
fetch_build_requires()
{
if [ "${FETCH_BUILD_REQUIRES}" = "yes" ]; then
+ update_shell_title "fetc_build_requires: $SPECFILE"
if [ "$FETCH_BUILD_REQUIRES_RPMGETDEPS" = "yes" ]; then
CONF=$(rpm-getdeps $BCOND $SPECFILE 2> /dev/null | awk '/^\-/ { print $3 } ' | _rpm_cnfl_check | xargs)
DEPS=$(rpm-getdeps $BCOND $SPECFILE 2> /dev/null | awk '/^\+/ { print $3 } ' | _rpm_prov_check | xargs)
@@ -1692,6 +1715,7 @@
esac
fi
+update_shell_title "$COMMAND"
case "$COMMAND" in
"build" | "build-binary" | "build-source" | "build-prep" )
init_builder;
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/builder?r1=1.351&r2=1.352&f=u
More information about the pld-cvs-commit
mailing list