Skip to content
Snippets Groups Projects
medkit-updater-ng-config.m4 704 B
Newer Older
Karel Koci's avatar
Karel Koci committed
dnl This is updater-ng uci configuration to be used in generated medkit
divert(-1)
changequote(`[', `]')
define([foreach],[ifelse(eval($#>2),1,[pushdef([$1],[$3])$2[]popdef([$1])[]ifelse(eval($#>3),1,[$0([$1],[$2],shift(shift(shift($@))))])])])
divert(0)dnl

dnl Set branch from BRANCH variable
dnl Also enable all lists that were added during medkit generation.
config turris 'turris'
	option mode 'branch'
ifdef([_UPDATER_BRANCH_],	option branch '_UPDATER_BRANCH_'
)dnl
ifdef([_LISTS_],foreach([LIST], [	list pkglists 'LIST'
Karel Koci's avatar
Karel Koci committed
], _LISTS_)
)dnl

dnl Enable all languages that were enabled durring medkit generation.
ifdef([_LANGS_], config l10n 'l10n'
foreach([LANG], [	list langs 'LANG'
], _LANGS_)
)dnl