From 63d64ad4e6cd86d6559480f6920fbc7244fa13c0 Mon Sep 17 00:00:00 2001 From: Mark Oteiza Date: Sat, 7 May 2016 15:49:25 -0400 Subject: [PATCH] generate directive lists from files --- systemd.el | 118 +++++------------------------------------------------ 1 file changed, 10 insertions(+), 108 deletions(-) diff --git a/systemd.el b/systemd.el index 8f23668..4022a9d 100644 --- a/systemd.el +++ b/systemd.el @@ -81,86 +81,11 @@ "Configuration sections for systemd 225.") (defconst systemd-unit-directives - ;; TODO: keep a script of sorts for generating this list. systemd - ;; source has a python script in tools/ for parsing the - ;; documentation xml for the unit directives. - ;; - ;; forcer on freenode threw together a curl monstrosity for achieving - ;; the same: - ;; curl -s http://www.freedesktop.org/software/systemd/man/systemd.directives.html | tr -d '\n' | sed 's/>/>\n/g' | sed -ne '/Unit directives/,/Options on the kernel/p' | sed -ne 's/.*