EXTRA_DIST += debian/copyright
EXTRA_DIST += debian/changelog
EXTRA_DIST += debian/control
+EXTRA_DIST += debian/compat
## What to install where.
EXTRA_DIST += debian/inst
*.install
stamp-*
tmp
-compat
+nsict-utils (1.2.8.3) experimental; urgency=low
+
+ * hush: Don't lose backslashes in output lines.
+
+ -- Mark Wooding <mdw@distorted.org.uk> Fri, 14 Jun 2013 12:32:10 +0100
+
nsict-utils (1.2.8.2) experimental; urgency=low
* hush: Close file descriptors around the command, so that we don't wait
Section: utils
Priority: extra
Maintainer: Mark Wooding <mdw@distorted.org.uk>
-Build-Depends: tinycdb, cdbs, python, python-cdb,
+Build-Depends: tinycdb, debhelper (>= 9), python, python-cdb,
catacomb-dev (>= 2.1.1), mlib-dev (>= 2.0.4), libspamc-dev, libcdb-dev
Standards-Version: 3.1.1
Package: stamp
Architecture: any
+Depends: ${shlibs:Depends}
Section: utils
Description: Like cat, but prefixing each line with a datestamp.
Package: getpass
Architecture: any
+Depends: ${shlibs:Depends}
Section: utils
Description: Read a password without echoing; write it to stdout.
Package: space
Architecture: any
+Depends: ${shlibs:Depends}
Section: utils
Description: Identify and fix problematic whitespace in text files.
The space program won't send you to the moon, but it will identify
Package: x86-model
Architecture: any-i386 any-amd64
+Depends: ${shlibs:Depends}
Section: utils
Description: Shows basic model information about x86 processors.
The cpuid program is probably better for most people.
#! /usr/bin/make -f
-CDBS = /usr/share/cdbs/1
+DH_OPTIONS = --parallel --builddir=debian/build
+%:; dh $@ $(DH_OPTIONS)
-include $(CDBS)/class/autotools.mk
-include $(CDBS)/rules/debhelper.mk
-
-###--------------------------------------------------------------------------
-### General settings.
-
-DEB_BUILDDIR = $(CURDIR)/build
-
-###--------------------------------------------------------------------------
-### Correct configuration.
-
-DEB_CONFIGURE_EXTRA_FLAGS = \
- --with-perlmoddir=/usr/share/perl5
+override_dh_auto_configure:
+ dh_auto_configure -- --with-perlmoddir=/usr/share/perl5
###--------------------------------------------------------------------------
### Installation.
### Rather than have lots (and /lots/) of little *.install files, we just
### have one big list of everything and split it out as we go.
-clean::; rm -f debian/*.install
-
-$(addprefix install/, $(DEB_ALL_PACKAGES)):: install/%: debian/%.install
-
-debian/%.install: debian/inst
- while read file pkg dir; do \
- if [ "$$pkg" = "$*" ]; then \
- echo "debian/tmp$$dir/$$file"; \
- fi; \
- done <debian/inst >$@.new && mv $@.new $@
+override_dh_clean:
+ dh_clean
+ rm -f debian/*.install debian/*.stamp
+
+override_dh_install: debian/install-files.stamp
+ dh_install
+
+debian/install-files.stamp: debian/inst
+ rm -f debian/*.install debian/*.install.new
+ pkgs=" "; while read file pkg dir; do \
+ case "$$pkgs" in *" $$pkg "*) ;; *) pkgs="$$pkgs$$pkg ";; esac; \
+ echo "debian/tmp$$dir/$$file" >>debian/$$pkg.install.new; \
+ done <debian/inst; \
+ for pkg in $$pkgs; do \
+ mv debian/$$pkg.install.new debian/$$pkg.install; \
+ done
###----- That's all, folks --------------------------------------------------
## stage of a pipeline, where we actually wanted the status of the first. So
## we write that to another pipe (fd 5) and pick it out using command
## substitution.
+copy () { while IFS= read -r line; do printf "%s %s\n" "$1" "$line"; done; }
rc=$(
{ { { { set +e; $lbuf "$cmd" "$@" 3>&- 4>&- 5>&-; echo $? >&5; } |
- while IFS= read line; do echo "| $line"; done >&4; } 2>&1 |
- while IFS= read line; do echo "* $line"; done >&4; } 4>&1 |
+ copy "|" >&4; } 2>&1 |
+ copy "*" >&4; } 4>&1 |
cat -u >&3; } 5>&1 </dev/null
)