From 931bf814b769a4762da5baee45f8051795103998 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 23 Nov 2022 03:12:31 +0300 Subject: [PATCH] now feature list is generated automatically... Signed-off-by: Alex A. Naanou --- post-install | 36 +++++------------------------------- 1 file changed, 5 insertions(+), 31 deletions(-) diff --git a/post-install b/post-install index 535a0d3..77432f1 100755 --- a/post-install +++ b/post-install @@ -215,37 +215,11 @@ SAVE=( #---------------------------------------------------------------------- # Builtin features... -# default -# XXX this should be split into system and user sections... -ALL_FEATURES=( - # system... - dnf-config - dnf - flatpak - snap - npm - vim - - start-services - - # user... - - dir - syncthing - bashctrl - - user-link - user-copy - - start-user-services - - gnome - - # keep this last... - scripts - platform-scripts - user-scripts -) +ALL_FEATURES=($( \ + cat $0 \ + | grep '^function feature-' \ + | sed 's/function feature-\([^(]*\)(.*$/\1/' \ + | sort)) # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -