forked from lunar-linux/lunar
/
license.menu
71 lines (54 loc) · 2.69 KB
/
license.menu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
############################################################
# #
# This code is written for Lunar Linux, see #
# http://lunar-linux.org #
# #
############################################################
# #
# $MENUS/license #
# includes menu for setting the accepted/rejected licenses #
# #
# 20051105 #
# #
############################################################
# #
# Copyrighted Auke Kok 2005 under GPLv2 #
# #
############################################################
set_accepted_licenses()
{
PROMPT="Please select acceptable licenses
Lunar by default only accept osi-approved licenses. You will
need to tell lunar to explicitly accept or reject licenses if
you wish to change this behaviour.
You have several ways of doing so:
o Enter \"all\" in this field to accept every license.
o Enter \"osi\" to accept any known osi approved license.
o Or enter any specific license name in here to accept it.
o Enter licenses in the REJECTED_LICENSES and leave this
field empty to reject only those licenses.
Currently known osi licenses: gpl gpl2 lgpl gfdl bsd mpl cc apache
artistic qpl."
ACCEPTED_LICENSES=`$DIALOG --title "Select accepted licenses" \
--ok-label "Commit" --inputbox \
"$PROMPT" 0 0 "$ACCEPTED_LICENSES"`
set_local_config ACCEPTED_LICENSES "$ACCEPTED_LICENSES"
}
set_rejected_licenses()
{
PROMPT="Please select rejected licenses
Lunar by default only accepts osi-approved licenses. You will
need to tell lunar to explicitly accept or reject licenses if
you wish to change this behaviour.
You have several ways of doing so:
o use the ACCEPTED_LICENSES field to accept only specific licenses
o enter any license name in here to reject it - however \"osi\"
or \"all\" does not work in this field - you must use the exact
name.
Remember that if you leave ACCEPTED_LICENSES empty, all licenses will
be accepted that do not match the REJECTED_LICENSES list."
REJECTED_LICENSES=`$DIALOG --title "Select rejected licenses" \
--ok-label "Commit" --inputbox \
"$PROMPT" 0 0 "$REJECTED_LICENSES"`
set_local_config REJECTED_LICENSES "$REJECTED_LICENSES"
}