contrib: print overall contrib license
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 26 Sep 2017 18:12:01 +0000 (21:12 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 26 Sep 2017 18:12:21 +0000 (21:12 +0300)
contrib/bootstrap

index 5e3760c..dbb0e27 100755 (executable)
@@ -135,6 +135,26 @@ then
        echo "$HOST"
 fi
 
+echo -n "Packages licensing...    "
+if test -n "$GPL"
+then
+       if test -n "$GNUV3"
+       then
+               LICENSE="GPL version 3"
+       else
+               LICENSE="GPL version 2"
+       fi
+else
+       if test -n "$GNUV3"
+       then
+               LICENSE="Lesser GPL version 3"
+       else
+               LICENSE="Lesser GPL version 2.1"
+       fi
+fi
+test -z "$AD_CLAUSES" || LICENSE="$LICENSE, with advertisement clauses"
+echo "$LICENSE"
+
 if test "$PREFIX"
 then
        # strip trailing slash