Include divsufsort.c license with Windows distribution
authorEric Biggers <ebiggers3@gmail.com>
Thu, 3 Mar 2016 03:16:34 +0000 (21:16 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Fri, 4 Mar 2016 02:27:17 +0000 (20:27 -0600)
NEWS
tools/make-windows-release

diff --git a/NEWS b/NEWS
index d03c156..ac759ff 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -25,6 +25,8 @@ Version 1.9.1-BETA:
 
                VSS support is no longer marked "experimental".
 
+               Added missing license file for libdivsufsort-lite.
+
 Version 1.9.0:
        Added experimental support for Windows VSS (Volume Shadow Copy Service).
        The new '--snapshot' argument to 'wimcapture' makes wimlib automatically
index 1b80d31..6bee2af 100755 (executable)
@@ -78,6 +78,12 @@ ${ARCH}-w64-mingw32-strip $DESTDIR/*.{dll,exe}
 
 cp NEWS README* COPYING* $DESTDIR
 cp $WINDEPDIR/COPYING* $DESTDIR
+
+sed -n '/^#/q; s/^[\/\* ]*//; p' src/divsufsort.c > $DESTDIR/COPYING.libdivsufsort-lite
+if ! grep -q 'Copyright' $DESTDIR/COPYING.libdivsufsort-lite; then
+       echo "ERROR: failed to extract libdivsufsort-lite license text" 1>&2
+       exit 1
+fi
 (
        cd $DESTDIR
        for fil in NEWS README* COPYING*; do