Patch for displaying progress in xterm titlebar



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.


Cheers,
Jens
--- gar.lib.mk.orig	2003-09-02 18:20:05.000000000 +0200
+++ gar.lib.mk	2003-09-02 18:22:29.000000000 +0200
@@ -110,7 +110,7 @@
 		echo '*** GAR GAR GAR!  $* not in $(CHECKSUM_FILE) file!  GAR GAR GAR! ***' 1>&2; \
 		false; \
 	fi
-		
+
 
 #################### GARCHIVE RULES ####################
 
@@ -128,24 +128,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 +163,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 +285,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 +300,7 @@
 # arguments
 configure-%/Imakefile: 
 	@echo " ==> Running xmkmf in $*"
+	@xtermset -T "Running xmkmf in `basename $*`"
 	@cd $* && $(CONFIGURE_ENV) xmkmf $(CONFIGURE_ARGS)
 	@$(MAKECOOKIE)
 
@@ -301,16 +309,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 +348,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]