From b910f228f4f5b45ea4203342a5b6f5077bd4d019 Mon Sep 17 00:00:00 2001 From: dancer Date: Fri, 13 Dec 2002 15:19:23 +0000 Subject: 0.53 --- examples/B91dpkg-i | 26 ++++++++++++++++++++++++++ examples/C10shell | 4 ++++ examples/D10tmp | 4 ++-- 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 examples/B91dpkg-i create mode 100644 examples/C10shell (limited to 'examples') diff --git a/examples/B91dpkg-i b/examples/B91dpkg-i new file mode 100644 index 0000000..1085559 --- /dev/null +++ b/examples/B91dpkg-i @@ -0,0 +1,26 @@ +#!/bin/bash +# try to install the resulting debs. + +echo "Trying to install resulting packages and test upgrades" +set -ex + + +PKGNAMES=$(ls -1 /tmp/buildd *.deb | sed 's/_.*$//' ) + +# install-remove check +dpkg -i /tmp/buildd/*.deb +dpkg --remove $PKGNAMES + +# install-purge check +dpkg -i /tmp/buildd/*.deb +dpkg --purge $PKGNAMES + +# upgrade-remove check +apt-get install $PKGNAMES || true +dpkg -i /tmp/buildd/*.deb +dpkg --remove $PKGNAMES + +# upgrade-purge check +apt-get install $PKGNAMES || true +dpkg -i /tmp/buildd/*.deb +dpkg --purge $PKGNAMES diff --git a/examples/C10shell b/examples/C10shell new file mode 100644 index 0000000..c1c4655 --- /dev/null +++ b/examples/C10shell @@ -0,0 +1,4 @@ +#!/bin/bash +# invoke shell if build fails. + +/bin/bash /dev/tty diff --git a/examples/D10tmp b/examples/D10tmp index b522a84..cd0594e 100644 --- a/examples/D10tmp +++ b/examples/D10tmp @@ -1,6 +1,6 @@ #!/bin/bash #create $TMP and $TMPDIR -[ -n "$TMP" -a ! -d "$TMP" ] && mkdir "$TMP" -[ -n "$TMPDIR" -a ! -d "$TMPDIR" ] && mkdir "$TMPDIR" +[ -n "$TMP" -a ! -d "$TMP" ] && mkdir "$TMP" || true +[ -n "$TMPDIR" -a ! -d "$TMPDIR" ] && mkdir "$TMPDIR" || true -- cgit v1.2.3