#!/bin/sh
# Copyright (C) 2013 Ben Asselstine
# 
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved.  This file is offered as-is,
# without any warranty.
echo=`which echo`

#here is what we expect
expected=`mktemp $builddir/licensing.XXXXXX`
cat << EOF > $expected
dnl Copyright (C) 2013 Ben Asselstine
dnl
dnl Copying and distribution of this file, with or without modification,
dnl are permitted in any medium without royalty provided the copyright
dnl notice and this notice are preserved.  This file is offered as-is,
dnl without any warranty.
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
EOF

#generating our results
$echo -e "dnl Copyright (C) 2013 Ben Asselstine\n\
dnl \n\
dnl Copying and distribution of this file, with or without modification,\n\
dnl are permitted in any medium without royalty provided the copyright\n\
dnl notice and this notice are preserved.  This file is offered as-is,\n\
dnl without any warranty.\n\
#                                               -*- Autoconf -*-\n\
# Process this file with autoconf to produce a configure script.\n\
\n\
AC_INIT([licenseutils],[0.0.8pre],[http://sv.nongnu.org/bugs/?group=licenseutils])\n\
AC_CONFIG_AUX_DIR([build-aux])\n\
AM_INIT_AUTOMAKE\n\
AC_PREREQ(2.60)\n" | $licensing boilerplate --m4-style

#0005.log is simultaneously created as this script runs.
diff -uNrd $expected $builddir/0005.log
retval=$?

#cleanup
rm $expected
exit $retval
