debian/0000755000000000000000000000000012166324461007173 5ustar debian/upstream.changelog0000644000000000000000000000016312166324421012700 0ustar #1.0.0 1.0.1 # 2009-12-10: add copyright/GPL notice for debian pkg 1.0.2 # 2009-12-18: add -V option, long options debian/watch0000644000000000000000000000020112166324421010211 0ustar version=3 opts="downloadurlmangle=s/.index.html//" \ http://www.cs.indiana.edu/~kinzler/xtitle/ xtitle-([\d.]+)\.tgz debian debian/rules0000755000000000000000000000103012166324421010241 0ustar #!/usr/bin/make -f PACKAGE = xtitle BIN = $(PACKAGE) CHANGELOG = debian/upstream.changelog include debian/debian-vars.mk get-changelog: grep -i version= *.sh | sed 's,version=,,' > $(CHANGELOG) override_dh_auto_build: get-changelog # Nothing to compile override_dh_auto_clean: # Nothing to clean override_dh_installchangelogs: dh_installchangelogs $(CHANGELOG) override_dh_auto_install: install -D -m 755 $(PACKAGE).sh $(BINDIR)/$(BIN) install -D -m 644 $(PACKAGE).man $(MAN1DIR)/$(PACKAGE).1 %: dh $@ # End of file debian/changelog0000644000000000000000000000622212166324421011043 0ustar xtitle (1.0.2-6) unstable; urgency=low * debian/control - (Standards-Version): 3.9.4. - (Vcs-*): Update to anonscm.debian.org. * debian/copyright - Update year. * debian/patches - (30): Correct -v option description (LP: 1067712). - (40): Adjust Help(). - (41): Remove. Combine with 40 to simplify maintenance. -- Jari Aalto Fri, 07 Jun 2013 11:08:35 +0300 xtitle (1.0.2-5) unstable; urgency=low * debian/control - (Depends): Add choice x-terminal-emulator (Closes: #695922). Patch thanks to Barak A. Pearlmutter" . - (Description): Mention use of ANSI escape codes. * debian/copyright - Update to format 1.0. -- Jari Aalto Fri, 14 Dec 2012 14:58:44 +0200 xtitle (1.0.2-4) unstable; urgency=low * debian/compat - Update to 9 * debian/comprez.substvars - Delet unneeded file. * debian/control - (Build-Depends): update to debhelper 9. - (Standards-Version): 3.9.2. * debian/copyright - Update to DEP5 * debian/README.source - Delete unused file. * debian/upstream.changelog - New file. * debian/rules - Clean up targets. * debian/watch - Update URL. -- Jari Aalto Wed, 15 Feb 2012 12:04:41 -0500 xtitle (1.0.2-3) unstable; urgency=low * debian/patches - (30): Include 'set -u' in patch to notice unused variables and fix typo in variable name to set title correctly. Thanks to Sven Joachim for the changes (Closes: #566237). -- Jari Aalto Sat, 23 Jan 2010 18:07:16 +0200 xtitle (1.0.2-2) unstable; urgency=low * debian/patches - (30): Rework patch to change defaults so that title is set without any options (Closes: #566110) * debian/rules - (binary-indep): New. Call from target 'binary'. Remove unneeded dh_shlibdeps. * README.Debian-patches - New file -- Jari Aalto Thu, 21 Jan 2010 16:07:19 +0200 xtitle (1.0.2-1) unstable; urgency=low * debian/control - (Description): Write without hyphenation (Closes: #562896). * debian/copyright - Add freshmeat URL. * debian/debian-vars.mk - Delete file and integrate variables to debian/rules. * debian/patches - Rework patches according to new upstream release. -- Jari Aalto Tue, 29 Dec 2009 02:56:57 +0200 xtitle (1.0.1-1) unstable; urgency=low * Move to format: 3.0 (quilt). * debian/control - Remove dpatch. * debian/copyright - Minor layout changes. Use FSF URL. * debian/debian-vars.mk - Update content. * debian/patches - Convert to quilt. * debian/README.source - Delete, obsoleted by format 3.0. * debian/rules - Remove dpatch. - Remove targets that can be handled by dh(1). * debian/source/format - New file. * debian/xtitle.manpages - Move content from debian/rules. * debian/watch - Correct URL. -- Jari Aalto Thu, 17 Dec 2009 00:55:17 +0200 xtitle (1.0.0-1) unstable; urgency=low * Initial release (Closes: #559469). -- Jari Aalto Fri, 04 Dec 2009 19:09:06 +0200 debian/patches/0000755000000000000000000000000012166324421010616 5ustar debian/patches/series0000644000000000000000000000005112166324421012027 0ustar 30-man-option-adjust.patch 40-help.patch debian/patches/30-man-option-adjust.patch0000644000000000000000000000231212166324421015426 0ustar From 0b4d29691e2676841907f8002f95b6c184897368 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Sat, 19 Dec 2009 14:11:11 +0200 Subject: [PATCH] xtitle.man: order options alphabetically. chnange -q to -v Signed-off-by: Jari Aalto --- xtitle.man | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) --- a/xtitle.man +++ b/xtitle.man @@ -26,27 +26,33 @@ will also report the settings it has made. .SH OPTIONS .PP + .TP 10 -\-t, \-\-title -Only set the window title. -Default sets both. +\-\- +Interprets all following arguments as strings instead of options. + +.TP 10 +\-h, \-\-help +Prints a helpful usage message. + .TP 10 \-i, \-\-icon Only set the icon name. Default sets both. + +.TP 10 +\-t, \-\-title +Only set the window title. +Default sets both. + .TP 10 -\-q, \-\-quiet -Quiet mode. -Doesn't report the settings performed. +\-v, \-\-verbose +Display informational messages. + .TP 10 \-V, \-\-version Only prints the program version. -.TP 10 -\-h, \-\-help -Prints a helpful usage message. -.TP 10 -\-\- -Interprets all following arguments as strings instead of options. + .SH CAVEATS .I Xtitle is known to work with debian/patches/40-help.patch0000644000000000000000000000510012166324421013004 0ustar From 18f6deb82dfe567a414d9747566d8960b42e4cd6 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Sat, 19 Dec 2009 15:08:33 +0200 Subject: [PATCH] xtitle.sh: Add Help(). Write to stdout, not stderr. Simplyfy options. Replace -q with --verbose option Signed-off-by: Jari Aalto --- xtitle.sh | 63 +++++++++++++++++++++++++++++--------------------------------- 1 file changed, 30 insertions(+), 33 deletions(-) --- a/xtitle.sh +++ b/xtitle.sh @@ -33,59 +33,56 @@ version=1.0.1 # 2009-12-10: add copyright/GPL notice for debian pkg version=1.0.2 # 2009-12-18: add -V option, long options -dflttarg=ti -target=; bad= +Help () +{ + echo "\ +usage: $0 [ -itvV ] string ... + -i, --icon set icon name + -t, --title set window title + -v, --verbose display informational messages + -V, --version only output program version +Without -i or -t options, both the window title and icon name are set. +Version $version" + + exit 0 +} + +default="-t-i" # flags +target= while : do case $# in 0) break;; *) case "$1" in - -[tiqV]*) target="${target}$1";; - --title) target="${target}-t";; - --icon) target="${target}-i";; - --quiet) target="${target}-q";; - --version) target="${target}-V";; - - --) shift; break;; - -h|--help) bad=t; break;; - -*) bad=t; echo "$0: unknown option ($1)" 1>&2;; - *) break;; + -h|--help) Help ;; + -i|--icon) target="${target}-i" ;; + -t|--title) target="${target}-t" ;; + -v|--verbose) target="${target}-v" ;; + -V|--version) echo $version ; exit 0 ;; + -*) echo "$0: unknown option ($1)" >&2 ;; + --) shift; break ;; + *) break ;; esac shift;; esac done -case "$target" in -*V*) echo "$version"; exit 0;; -esac - -case "$#,$bad" in -0,*|*,?*) cat << EOF 1>&2 -usage: $0 [ -tiq ] string ... | -V - -t, --title set window title - -i, --icon set icon name - -q, --quiet quiet mode, don't report settings - -V, --version only output program version -Without -t or -i options, both the window title and icon name are set. -Version $version -EOF - exit 1;; -esac +[ ! "$arget" ] && target=$default case "$target" in -''|-q) target="$target$dflttarg";; +*i*|*t*) something="something" ;; esac case "$target" in *t*) case "$target" in - *q*) echo "]2;$*" | tr -d '\012';; - *) echo "]2;$*title = $*";; + *-v*) echo "]2;$*title = $*";; + *) echo "]2;$*" | tr -d '\012';; esac;; esac case "$target" in *i*) case "$target" in - *q*) echo "]1;$*" | tr -d '\012';; - *) echo "]1;$*icon = $*";; + *-v*) echo "]1;$*icon = $*";; + *) echo "]1;$*" | tr -d '\012';; esac;; esac debian/docs0000644000000000000000000000000712166324421010037 0ustar README debian/debian-vars.mk0000644000000000000000000000476412166324421011726 0ustar #!/usr/bin/make -f # # debian-vars.mk -- Common variables # # Copyright # # Copyright (C) 2005-2010 Jari Aalto # # License # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Description # # This is GNU makefile part that defines common variables and # macros to be used from debian/rules. To install, add following # to the beginning of debian/rules: # # PACKAGE = foo # include debian/debian-vars.mk ifneq (,) This makefile requires GNU Make. endif PACKAGE ?= foo PIXPACKAGE ?= $(PACKAGE) ICONPACKAGE ?= $(PACKAGE) TOPDIR := $(shell pwd) PKGDIR = $(shell pwd)/debian/$(PACKAGE) SHAREROOTDIR = $(PKGDIR)/usr/share SHAREDIR = $(SHAREROOTDIR)/$(PACKAGE) DOCROOTDIR = $(SHAREROOTDIR)/doc PKGDOCDIR = $(DOCROOTDIR)/$(PACKAGE) SITELISPDIR = $(SHAREROOTDIR)/emacs/site-lisp PKGLISPDIR = $(SITELISPDIR)/$(PACKAGE) DESKTOPDIR = $(SHAREROOTDIR)/applications XSESSIONDIR = $(SHAREROOTDIR)/xsessions LOCALEDIR = $(SHAREROOTDIR)/locale INFODIR = $(SHAREROOTDIR)/info PIXDIR = $(SHAREROOTDIR)/pixmaps PKGPIXDIR = $(PIXDIR)/$(PIXPACKAGE) ICONDIR = $(SHAREROOTDIR)/icons PKGICONDIR = $(ICONDIR)/$(ICONPACKAGE) MANROOTDIR = $(SHAREROOTDIR)/man MAN1DIR = $(MANROOTDIR)/man1 MAN5DIR = $(MANROOTDIR)/man5 MAN7DIR = $(MANROOTDIR)/man7 MAN8DIR = $(MANROOTDIR)/man8 LIBROOTDIR = $(PKGDIR)/usr/lib LIBDIR = $(LIBROOTDIR)/$(PACKAGE) LIBPERLDIR = $(LIBROOTDIR)/perl BINDIR = $(PKGDIR)/usr/bin ETCDIR = $(PKGDIR)/etc PKGETCDIR = $(PKGDIR)/etc/$(PACKAGE) SBINDIR = $(PKGDIR)/usr/sbin GAMEBINDIR = $(PKGDIR)/usr/games INSTALL ?= /usr/bin/install INSTALL_DIR = $(INSTALL) -m 755 -d INSTALL_DATA = $(INSTALL) -p -m 644 # The difference is that "BIN" may contain binary strip option INSTALL_SCRIPT = $(INSTALL) -p -m 755 INSTALL_BIN = $(INSTALL) -p -m 755 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_BIN += -s endif # End of Makefile part debian/source/0000755000000000000000000000000012166324421010467 5ustar debian/source/format0000644000000000000000000000001412166324421011675 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000212166324421010365 0ustar 9 debian/copyright0000644000000000000000000000232712166324421011126 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0 Upstream-Name: xtitle Upstream-Contact: Steve Kinzler Source: http://www.cs.indiana.edu/~kinzler/xtitle X-Upstream-Vcs: X-Upstream-Bugs: Comment: See also http://sourceforge.net/projects/xtitle Files: * Copyright: 1993-2000 Steve Kinzler License: GPL-2+ Files: debian/* Copyright: 2009-2013 Jari Aalto License: GPL-2+ License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU General Public License can be found in "/usr/share/common-licenses/GPL-2". debian/control0000644000000000000000000000160712166324421010576 0ustar Source: xtitle Section: utils Priority: extra Maintainer: Jari Aalto Build-Depends: debhelper (>= 9) Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/xtitle.git Vcs-Git: git://anonscm.debian.org/collab-maint/xtitle.git Homepage: http://www.cs.indiana.edu/~kinzler/xtitle Package: xtitle Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, xterm | x-terminal-emulator Description: set window title and icon name for X terminal Xtitle sets the window title and/or the icon name of the terminal window in which it is run to be its command line arguments. It does this by outputting the appropriate xterm(1) control sequence charac- ters. Unless messages are suppressed, xtitle will also report the settings it has made. . Note: In order ro be able to change the terminal's title, the terminal must support ANSI escape codes.