team-wide uniform ~/.quiltrc

Thorsten Glaser tg at mirbsd.de
Sat Jun 23 14:58:07 UTC 2012


Alessio Treglia dixit:

>Hi all,

Ciao Alessio ;-) and greetings from your favourite croatian restaurant ☺

>good idea, Fabian!

I also found the ideas and thread upon which I happened by accident
intriguing but the official implementation scary (considering I write
a shell, not surprising) and did it more cleanly.

>I'd like to add --diffstat and --strip-trailing-whitespace to
>QUILT_REFRESH_ARGS and set QUILT_DIFF_OPTS="--show-c-function". I find
>the latter and --diffstat particularly helpful.

I’ve not added --diffstat to mine out of personal preference, I found
them to be spam and uninteresting, but you can clear that within your
team. I’ve also not added --strip-trailing-whitespace because the docs
didn’t make it clear whether it strips trailing whitespace only in the
rest of the file (good!) or also in the patched files’ “+” parts which,
while I’d prefer it, is actually harmful (there are files that require
trailing whitespace in their syntax, and I’d rather not break those by
accident; while they are few, debugging this is usually a real PITA).

I’ve attached the ~/.quiltrc file resulting from this thread, the Perl
and Maintainer’s Guide suggestions, in “clean” POSIX shell (nothing
that requires any bashisms, dashisms or Korn Shell features in there,
although I hard-coded /bin/readlink for Debian where this path is part
of the Essential coreutils, because some shells might have a readlink
builtin that doesn’t implement the ‘-e’ GNU extension). QUILT_PATCHES
ought to be an absolute path IMHO but this is what we got.

This ~/.quiltrc file does not contain enough copyrightable work to
fall under copyright law and thus does not need a copyright licence,
but if you’d prefer one, take any licence that has ever been OSI
approved.

bye,
//mirabilos
-- 
FWIW, I'm quite impressed with mksh interactively. I thought it was much
*much* more bare bones. But it turns out it beats the living hell out of
ksh93 in that respect. I'd even consider it for my daily use if I hadn't
wasted half my life on my zsh setup. :-) -- Frank Terbeck in #!/bin/mksh
-------------- next part --------------
while test -z "$QUILT_PATCHES"; do
	d=.
	while :; do
		test -d $d/debian && test -x $d/debian/rules && break
		test x"$(/bin/readlink -e $d)" = x"/" && break
		d=$d/..
	done
	test -x $d/debian/rules || break

	# now in Debian packaging tree with unset $QUILT_PATCHES

	QUILT_PATCHES="debian/patches"
	QUILT_PATCH_OPTS="--reject-format=unified"
	QUILT_DIFF_OPTS="--show-c-function"
	QUILT_DIFF_ARGS="-p ab --no-timestamps --no-index --color=auto"
	QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index"
	QUILT_PUSH_ARGS="--color=auto"
	QUILT_COLORS="diff_hdr=1;32:diff_add=1;34:diff_rem=1;31:diff_hunk=1;33:diff_ctx=35:diff_cctx=33"
	test -d $d/debian/patches || mkdir $d/debian/patches

	# this is not a real loop, exit it always
	break
done


More information about the pkg-multimedia-maintainers mailing list