From b44a4bae7d5c1098709dfaffd122263e0f4c5bc6 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 16 Nov 2016 16:28:03 +0100 Subject: standard lib: added getopt.tes for parsing command line options in scripts * this uses an optstring compatible with getopt(3). * It does not use repeated getopt calls to iterate options, though but places the results in registers beginning with "getopt.". E.g. option "C" will result in "getopt.C" being set after the call to setopt. String arguments are supported and are placed in the string part of the getopt registers. * The grosciteco.tes and symbols-extract.tes scripts make use of getopt now, to simplify and clean up their command line handling. --- src/Makefile.am | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index 72e9157..facf963 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -23,8 +23,10 @@ endif BUILT_SOURCES = -EXTRA_DIST = symbols-extract.tes \ - sciteco.html +dist_noinst_SCRIPTS = symbols-extract.tes + +# Emscripten HTML page: +EXTRA_DIST = sciteco.html noinst_LTLIBRARIES = libsciteco-base.la libsciteco_base_la_SOURCES = main.cpp sciteco.h \ @@ -77,12 +79,12 @@ CLEANFILES = $(BUILT_SOURCES) \ symbols-scintilla.cpp : @SCINTILLA_PATH@/include/Scintilla.h \ symbols-extract.tes $(SCITECO_MINIMAL) -m -- @srcdir@/symbols-extract.tes \ - $< $@ "SCI_" scintilla + -p "SCI_" -n scintilla $@ $< symbols-scilexer.cpp : @SCINTILLA_PATH@/include/SciLexer.h \ symbols-extract.tes $(SCITECO_MINIMAL) -m -- @srcdir@/symbols-extract.tes \ - $< $@ "SCLEX_,SCE_" scilexer + -p "SCLEX_,SCE_" -n scilexer $@ $< # This installs a wrapper script to libexecdir to be used as # the SciTECO interpreter in Hash-Bang lines. -- cgit v1.2.3