version 1.39, 2018/04/28 23:32:52 |
version 1.40, 2018/05/01 23:30:11 |
|
|
// InitVartypes initializes the long list of predefined pkgsrc variables. |
// InitVartypes initializes the long list of predefined pkgsrc variables. |
// After this is done, ${PKGNAME}, ${MAKE_ENV} and all the other variables |
// After this is done, ${PKGNAME}, ${MAKE_ENV} and all the other variables |
// can be used in Makefiles without triggering warnings about typos. |
// can be used in Makefiles without triggering warnings about typos. |
func (src *PkgsrcImpl) InitVartypes() { |
func (src *Pkgsrc) InitVartypes() { |
|
|
acl := func(varname string, kindOfList KindOfList, checker *BasicType, aclentries string) { |
acl := func(varname string, kindOfList KindOfList, checker *BasicType, aclentries string) { |
m := mustMatch(varname, `^([A-Z_.][A-Z0-9_]*)(|\*|\.\*)$`) |
m := mustMatch(varname, `^([A-Z_.][A-Z0-9_]*)(|\*|\.\*)$`) |