From 5e501cf05fd1997018613304761d1104879353aa Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Tue, 3 Dec 2013 15:32:12 +0200 Subject: Implement sg --list * etc/Makefile.am (FLNFILES): Add lsattr.fln (.fln.forlan): Use all prerequisites, not only the first one. (FORMATFILES): Remove lsattr.forlan (lsattr.forlan): Use implicit rule. (sg.forlan): New rule * etc/flncat.c (comment): Optionally output the comment. (main): Output " else " only if some non-whitespace and non-comment characters were output before. * etc/lsattr.fln: New file * src/sg-cl.opt: New option --list. * src/sg.c (list_option): New variable. --- etc/Makefile.am | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'etc/Makefile.am') diff --git a/etc/Makefile.am b/etc/Makefile.am index 1f53924..caa780c 100644 --- a/etc/Makefile.am +++ b/etc/Makefile.am @@ -45,6 +45,7 @@ FLNFILES=\ detach-volume.fln\ disassociate-address.fln\ get-console-output.fln\ + lsattr.fln\ modify-instance-attribute.fln\ modify-snapshot-attribute.fln\ reboot-instances.fln\ @@ -62,11 +63,11 @@ SUFFIXES=.cfin .conf if SPLIT_FORMATS SUFFIXES += .forlan .fln .fln.forlan: - $(AM_V_GEN)$(abs_builddir)/flncat $< default.fln > $@ -FORMATFILES = $(FLNFILES:.fln=.forlan) lsattr.forlan + $(AM_V_GEN)$(abs_builddir)/flncat $^ default.fln > $@ +FORMATFILES = $(FLNFILES:.fln=.forlan) FORMATNAME = $${command} -lsattr.forlan: describe-instance-attribute.fln describe-snapshot-attribute.fln default.fln - $(AM_V_GEN)(cd $(srcdir); $(abs_builddir)/flncat describe-instance-attribute.fln describe-snapshot-attribute.fln default.fln) > lsattr.forlan +lsattr.forlan: describe-instance-attribute.fln describe-snapshot-attribute.fln default.fln +sg.forlan: sg.fln describe-security-groups.fln else FORMATFILES = eclat.forlan eclat.forlan: $(FLNFILES) default.fln -- cgit v1.2.1