Re: Patch for displaying progress in xterm titlebar
- From: Jens Bech Madsen <jbm oncable dk>
- To: garnome-list gnome org
- Subject: Re: Patch for displaying progress in xterm titlebar
- Date: Tue, 02 Sep 2003 18:36:35 +0200
On Tue, 2003-09-02 at 18:26, Jens Bech Madsen wrote:
> Here is a patch for gar.lib.mk which makes Garnome change the title of
> xterms and like terminals to display what is currently happening. Note
> that it requires that xtermset is installed (Debian package: xtermset).
>
> Useful if you're impatient and want to know how far your build is.
Forgot the download part. Included in this one.
>
> Cheers,
> Jens
--- gar.lib.mk.orig 2003-09-02 18:20:05.000000000 +0200
+++ gar.lib.mk 2003-09-02 18:34:22.000000000 +0200
@@ -39,6 +39,7 @@
$(DOWNLOADDIR)/%:
@if test -f $(COOKIEDIR)/checksum-$*; then : ; else \
echo " ==> Grabbing $@"; \
+ xtermset -T "Fetching `basename $ `"; \
for i in $(filter %/$*,$(URLS)); do \
echo " ==> Trying $$i"; \
$(MAKE) -s $$i || continue; \
@@ -110,7 +111,7 @@
echo '*** GAR GAR GAR! $* not in $(CHECKSUM_FILE) file! GAR GAR GAR! ***' 1>&2; \
false; \
fi
-
+
#################### GARCHIVE RULES ####################
@@ -128,24 +129,28 @@
# rule to extract uncompressed tarballs
tar-extract-%:
@echo " ==> Extracting $(DOWNLOADDIR)/$*"
+ @xtermset -T "Extracting `basename $*`"
@tar -xf $(DOWNLOADDIR)/$* -C $(EXTRACTDIR)
@$(MAKECOOKIE)
# rule to extract files with tar xzf
tar-gz-extract-%:
@echo " ==> Extracting $(DOWNLOADDIR)/$*"
+ @xtermset -T "Extracting `basename $*`"
@gzip -dc $(DOWNLOADDIR)/$* | tar -xf - -C $(EXTRACTDIR)
@$(MAKECOOKIE)
# rule to extract files with tar and bzip
tar-bz-extract-%:
@echo " ==> Extracting $(DOWNLOADDIR)/$*"
+ @xtermset -T "Extracting `basename $*`"
@bzip2 -dc $(DOWNLOADDIR)/$* | tar -xf - -C $(EXTRACTDIR)
@$(MAKECOOKIE)
# rule to extract files with unzip
zip-extract-%:
@echo " ==> Extracting $(DOWNLOADDIR)/$*"
+ @xtermset -T "Extracting `basename $*`"
@unzip $(DOWNLOADDIR)/$* -d $(EXTRACTDIR)
@$(MAKECOOKIE)
@@ -159,6 +164,7 @@
#gets the meat of a .deb into $(WORKSRC)
deb-bin-extract-%:
@echo " ==> Extracting $(DOWNLOADDIR)/$*"
+ @xtermset -T "Extracting `basename $*`"
@ar x $(DOWNLOADDIR)/$*
@rm debian-binary && mv *.tar.gz $(DOWNLOADDIR) && mkdir $(WORKSRC) && tar -xvz -C $(WORKSRC) -f $(DOWNLOADDIR)/data.tar.gz
@$(MAKECOOKIE)
@@ -280,11 +286,13 @@
# script.
configure-%/configure:
@echo " ==> Running configure in $*"
+ @xtermset -T "Configuring `basename $*`"
@cd $* && $(CONFIGURE_ENV) ./configure $(CONFIGURE_ARGS)
@$(MAKECOOKIE)
configure-%/autogen.sh:
@echo " ==> Running autogen.sh in $*"
+ @xtermset -T "Running autogen.sh in `basename $*`"
@cd $* && $(CONFIGURE_ENV) ./autogen.sh $(CONFIGURE_ARGS)
@$(MAKECOOKIE)
@@ -293,6 +301,7 @@
# arguments
configure-%/Imakefile:
@echo " ==> Running xmkmf in $*"
+ @xtermset -T "Running xmkmf in `basename $*`"
@cd $* && $(CONFIGURE_ENV) xmkmf $(CONFIGURE_ARGS)
@$(MAKECOOKIE)
@@ -301,16 +310,19 @@
# build from a standard gnu-style makefile's default rule.
build-%/Makefile:
@echo " ==> Running make in $*"
+ @xtermset -T "Building `basename $*`"
@$(BUILD_ENV) $(MAKE) $(PARALLELMFLAGS) $(foreach TTT,$(BUILD_OVERRIDE_DIRS),$(TTT)="$($(TTT))") -C $* $(BUILD_ARGS)
@$(MAKECOOKIE)
build-%/makefile:
@echo " ==> Running make in $*"
+ @xtermset -T "Building `basename $*`"
@$(BUILD_ENV) $(MAKE) $(PARALLELMFLAGS) $(foreach TTT,$(BUILD_OVERRIDE_DIRS),$(TTT)="$($(TTT))") -C $* $(BUILD_ARGS)
@$(MAKECOOKIE)
build-%/GNUmakefile:
@echo " ==> Running make in $*"
+ @xtermset -T "Building `basename $*`"
@$(BUILD_ENV) $(MAKE) $(PARALLELMFLAGS) $(foreach TTT,$(BUILD_OVERRIDE_DIRS),$(TTT)="$($(TTT))") -C $* $(BUILD_ARGS)
@$(MAKECOOKIE)
@@ -337,16 +349,19 @@
# just run make install and hope for the best.
install-%/Makefile:
@echo " ==> Running make install in $*"
+ @xtermset -T "Installing `basename $*`"
@$(INSTALL_ENV) $(MAKE) DESTDIR=$(DESTDIR) $(foreach TTT,$(INSTALL_OVERRIDE_DIRS),$(TTT)="$(DESTDIR)$($(TTT))") -C $* $(INSTALL_ARGS) install
@$(MAKECOOKIE)
install-%/makefile:
@echo " ==> Running make install in $*"
+ @xtermset -T "Installing `basename $*`"
@$(INSTALL_ENV) $(MAKE) DESTDIR=$(DESTDIR) $(foreach TTT,$(INSTALL_OVERRIDE_DIRS),$(TTT)="$(DESTDIR)$($(TTT))") -C $* $(INSTALL_ARGS) install
@$(MAKECOOKIE)
install-%/GNUmakefile:
@echo " ==> Running make install in $*"
+ @xtermset -T "Installing `basename $*`"
@$(INSTALL_ENV) $(MAKE) DESTDIR=$(DESTDIR) $(foreach TTT,$(INSTALL_OVERRIDE_DIRS),$(TTT)="$(DESTDIR)$($(TTT))") -C $* $(INSTALL_ARGS) install
@$(MAKECOOKIE)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]