Browse Source

Add --create-spdx option to dist

pull/398/head
Sami Vaarala 9 years ago
parent
commit
0d2a39cc2f
  1. 8
      util/make_dist.sh

8
util/make_dist.sh

@ -22,9 +22,11 @@
set -e # exit on errors
INITJS_MINIFY=closure
CREATE_SPDX=0
while [ $# -gt 0 ]; do
case "$1" in
--minify) INITJS_MINIFY="$2"; shift;;
--create-spdx) CREATE_SPDX=1; break;;
--) shift; break;;
*) break;;
esac
@ -826,4 +828,8 @@ python util/combine_src.py $DISTSRCSEP $DISTSRCCOM/duktape.c \
rm $DIST/*.tmp
# Create SPDX license once all other files are in place (and cleaned)
python util/create_spdx_license.py `pwd`/dist/license.spdx
if [ x"$CREATE_SPDX" = "x1" ]; then
python util/create_spdx_license.py `pwd`/dist/license.spdx
else
echo "Skip SPDX license creation"
fi

Loading…
Cancel
Save