midori/tests/license.sh

14 lines
658 B
Bash
Raw Permalink Normal View History

2013-10-24 03:45:02 +00:00
#! /usr/bin/env sh
# Copyright 2012 Christian Dywan <christian@twotoasts.de>
#
# This script is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
echo Running 'licensecheck'
2015-09-12 00:47:06 +00:00
test -z $(which licensecheck) && echo ...SKIPPED: not installed && exit 0
2013-10-24 03:45:02 +00:00
test -n "$SRCDIR" && cd $SRCDIR
test -z "$BLDDIR" && BLDDIR=_build
2015-09-12 00:47:06 +00:00
find . \! -path './.*/*' -a \! -path "./$BLDDIR/*" -a \! -path "./_*/*" -a \! -path "./debian/*" | xargs licensecheck | grep UNKNOWN && exit 1
2013-10-24 03:45:02 +00:00
echo ...OK