From 9a1b5749d00a890586b1f66409fd8758e70ecefa Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Wed, 2 Mar 2016 21:16:34 -0600 Subject: [PATCH 1/1] Include divsufsort.c license with Windows distribution --- NEWS | 2 ++ tools/make-windows-release | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/NEWS b/NEWS index d03c156a..ac759ff3 100644 --- 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 diff --git a/tools/make-windows-release b/tools/make-windows-release index 1b80d315..6bee2af3 100755 --- a/tools/make-windows-release +++ b/tools/make-windows-release @@ -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 -- 2.43.0