#! /bin/sh # -*- sh -*- # # $Id: docs.test,v 1.3 2003/03/14 18:22:37 richdawe Exp $ # Copyright (C) 2003 by Richard Dawe # # Check that pakke's document queries produce the documents we expect. if (test -n "$VERBOSE" -a "$VERBOSE" != "n" ); then set -x fi fail=0 $PAKKE $PAKKEOPT -q -p docs.zip --changelog > changelog.res diff -wu3 changelog.res docs/docs/changelog.txt || fail=1 $PAKKE $PAKKEOPT -q -p docs.zip --pre-install-readme > preir.res diff -wu3 preir.res docs/docs/preir.txt || fail=1 $PAKKE $PAKKEOPT -q -p docs.zip --post-install-readme > postir.res diff -wu3 postir.res docs/docs/postir.txt || fail=1 $PAKKE $PAKKEOPT -q -p docs.zip --pre-uninstall-readme > preur.res diff -wu3 preur.res docs/docs/preur.txt || fail=1 $PAKKE $PAKKEOPT -q -p docs.zip --post-uninstall-readme > postur.res diff -wu3 postur.res docs/docs/postur.txt || fail=1 exit $fail