aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs6rc/s6rc_repo_setcompile.c
blob: 88af42bb2a607718b3abf1344fb45746e8741883 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* ISC license. */

#include <s6-rc/repo.h>

int s6rc_repo_setcompile (char const *repo, char const *set, char const *defbundle, char *oldc, unsigned int verbosity, char const *fdhuser)
{
  static char const *const subs[3] = { "active", "onboot", "bundle" } ;
  if (!s6rc_repo_makesetbundles(repo, set, verbosity)) return -1 ;
  if (!s6rc_repo_makedefbundle(repo, set, defbundle)) return -1 ;
  return s6rc_repo_compile(repo, set, subs, 3, oldc, verbosity, fdhuser) ;
}