[cdesktopenv-devel] dthelp/parser/pass2: make it build
Well thats it for dthelp, the final boss seems to be dtinfo, seems extremely complicated from the glance I took at it... Thank you for your time, -ChaseFrom e63a070a4a101c816d3d7a442f0b5ad2c81591da Mon Sep 17 00:00:00 2001 From: Chase Date: Mon, 15 Feb 2021 21:31:52 -0600 Subject: [PATCH] dthelp/parser/pass2: make it build --- cde/.gitignore| 41 ++ cde/configure.ac | 6 ++ cde/programs/dthelp/parser/Makefile.am| 4 +- .../dthelp/parser/pass2/build/Makefile.am | 56 +++ .../dthelp/parser/pass2/eltdef/Makefile.am| 52 + .../dthelp/parser/pass2/htag2/Makefile.am | 42 ++ .../dthelp/parser/pass2/parser/Makefile.am| 50 + .../dthelp/parser/pass2/util/Makefile.am | 21 +++ 8 files changed, 269 insertions(+), 3 deletions(-) create mode 100644 cde/programs/dthelp/parser/pass2/build/Makefile.am create mode 100644 cde/programs/dthelp/parser/pass2/eltdef/Makefile.am create mode 100644 cde/programs/dthelp/parser/pass2/htag2/Makefile.am create mode 100644 cde/programs/dthelp/parser/pass2/parser/Makefile.am create mode 100644 cde/programs/dthelp/parser/pass2/util/Makefile.am diff --git a/cde/.gitignore b/cde/.gitignore index 4972fbb7b..5c9269386 100644 --- a/cde/.gitignore +++ b/cde/.gitignore @@ -598,6 +598,47 @@ programs/dthelp/parser/pass1/parser/dthelp_htag1 programs/dthelp/parser/pass1/parser/error programs/dthelp/parser/pass1/util/context programs/dthelp/parser/pass1/util/fclndir +programs/dthelp/parser/pass2/build/arc.h +programs/dthelp/parser/pass2/build/build +programs/dthelp/parser/pass2/build/case.c +programs/dthelp/parser/pass2/build/context.h +programs/dthelp/parser/pass2/build/delim.dat +programs/dthelp/parser/pass2/build/delim.h +programs/dthelp/parser/pass2/build/dtd.h +programs/dthelp/parser/pass2/build/entity.h +programs/dthelp/parser/pass2/build/error +programs/dthelp/parser/pass2/build/template +programs/dthelp/parser/pass2/eltdef/case.c +programs/dthelp/parser/pass2/eltdef/context.h +programs/dthelp/parser/pass2/eltdef/delim.dat +programs/dthelp/parser/pass2/eltdef/delim.h +programs/dthelp/parser/pass2/eltdef/efile.c +programs/dthelp/parser/pass2/eltdef/eltdef +programs/dthelp/parser/pass2/eltdef/entfile.c +programs/dthelp/parser/pass2/eltdef/entity2.h +programs/dthelp/parser/pass2/eltdef/error +programs/dthelp/parser/pass2/eltdef/estring.h +programs/dthelp/parser/pass2/eltdef/globdec.h +programs/dthelp/parser/pass2/eltdef/globdef.h +programs/dthelp/parser/pass2/eltdef/if.h +programs/dthelp/parser/pass2/eltdef/pfile.c +programs/dthelp/parser/pass2/eltdef/pval.h +programs/dthelp/parser/pass2/eltdef/sfile.c +programs/dthelp/parser/pass2/eltdef/signon.h +programs/dthelp/parser/pass2/eltdef/signonx.h +programs/dthelp/parser/pass2/eltdef/stfile.c +programs/dthelp/parser/pass2/eltdef/tfile.c +programs/dthelp/parser/pass2/htag2/LocaleXlate.c +programs/dthelp/parser/pass2/htag2/XlationSvc.c +programs/dthelp/parser/pass2/parser/dthelp_htag2 +programs/dthelp/parser/pass2/parser/case.c +programs/dthelp/parser/pass2/parser/context.h +programs/dthelp/parser/pass2/parser/delim.dat +programs/dthelp/parser/pass2/parser/delim.h +programs/dthelp/parser/pass2/parser/error +programs/dthelp/parser/pass2/parser/parser +programs/dthelp/parser/pass2/util/context +programs/dthelp/parser/pass2/util/fclndir programs/dthelp/parser/helptag/dthelptag # programs/dtinfo diff --git a/cde/configure.ac b/cde/configure.ac index 969faa1ff..45fb04a98 100644 --- a/cde/configure.ac +++ b/cde/configure.ac @@ -526,6 +526,12 @@ programs/dthelp/parser/canon1/build/Makefile programs/dthelp/parser/canon1/eltdef/Makefile programs/dthelp/parser/canon1/helptag/Makefile programs/dthelp/parser/canon1/parser/Makefile +programs/dthelp/parser/pass2/Makefile +programs/dthelp/parser/pass2/util/Makefile +programs/dthelp/parser/pass2/build/Makefile +programs/dthelp/parser/pass2/eltdef/Makefile +programs/dthelp/parser/pass2/htag2/Makefile +programs/dthelp/parser/pass2/parser/Makefile programs/dthelp/parser/helptag/Makefile programs/nsgmls/Makefile diff --git a/cde/programs/dthelp/parser/Makefile.am b/cde/programs/dthelp/parser/Makefile.am index af5381c79..4e0157e31 100644 --- a/cde/programs/dthelp/parser/Makefile.am +++ b/cde/programs/dthelp/parser/Makefile.am @@ -1,5 +1,3 @@ MAINTAINERCLEANFILES = Makefile.in -SUBDIRS = pass1 canon1 helptag - -#NOTYET pass2 +SUBDIRS = pass1 canon1 pass2 helptag diff --git a/cde/programs/dthelp/parser/pass2/build/Makefile.am b/cde/programs/dthelp/parser/pass2/build/Makefile.am new file mode 100644 index 0..582bb0f43 --- /dev/null +++ b/cde/programs/dthelp/parser/pass2/build/Makefile.am @@ -0,0 +1,56 @@ +MAINTAINERCLEANFILES = Makefile.in + +noinst_PROGRAMS = build + +HTAG2 = .. +HTAG2SRC= $(HTAG2)/htag2 +SDLPARSERSRC = $(HTAG2)/parser +SDLELTDEFSRC = $(HTAG2)/eltdef +SDLDTDFILE = $(HTAG2SRC)/sdl.dtd +SDLUTILSRC
[cdesktopenv-devel] dthelp/parser/canon1: make it build
Title is self explainatory. Thank you for your time, -ChaseFrom 04a7b4c8e33c721453c2e0cc311d96460e8d8f1b Mon Sep 17 00:00:00 2001 From: Chase Date: Mon, 15 Feb 2021 19:27:54 -0600 Subject: [PATCH] dthelp/parser/canon1: get it to build --- cde/.gitignore| 41 ++ cde/configure.ac | 6 ++ cde/programs/dthelp/parser/Makefile.am| 4 +- .../dthelp/parser/canon1/build/Makefile.am| 55 +++ .../dthelp/parser/canon1/eltdef/Makefile.am | 53 ++ .../dthelp/parser/canon1/helptag/Makefile.am | 43 +++ .../dthelp/parser/canon1/parser/Makefile.am | 49 + .../dthelp/parser/canon1/util/Makefile.am | 21 +++ 8 files changed, 270 insertions(+), 2 deletions(-) create mode 100644 cde/programs/dthelp/parser/canon1/build/Makefile.am create mode 100644 cde/programs/dthelp/parser/canon1/eltdef/Makefile.am create mode 100644 cde/programs/dthelp/parser/canon1/helptag/Makefile.am create mode 100644 cde/programs/dthelp/parser/canon1/parser/Makefile.am create mode 100644 cde/programs/dthelp/parser/canon1/util/Makefile.am diff --git a/cde/.gitignore b/cde/.gitignore index 35e050793..4972fbb7b 100644 --- a/cde/.gitignore +++ b/cde/.gitignore @@ -517,6 +517,47 @@ programs/dtexec/DtSvcLock.h programs/dtexec/MsgLog.c # programs/dthelp +programs/dthelp/parser/canon1/build/arc.h +programs/dthelp/parser/canon1/build/build +programs/dthelp/parser/canon1/build/case.c +programs/dthelp/parser/canon1/build/context.h +programs/dthelp/parser/canon1/build/delim.dat +programs/dthelp/parser/canon1/build/delim.h +programs/dthelp/parser/canon1/build/dtd.h +programs/dthelp/parser/canon1/build/entity.h +programs/dthelp/parser/canon1/build/error +programs/dthelp/parser/canon1/build/template +programs/dthelp/parser/canon1/eltdef/case.c +programs/dthelp/parser/canon1/eltdef/context.h +programs/dthelp/parser/canon1/eltdef/delim.dat +programs/dthelp/parser/canon1/eltdef/delim.h +programs/dthelp/parser/canon1/eltdef/efile.c +programs/dthelp/parser/canon1/eltdef/eltdef +programs/dthelp/parser/canon1/eltdef/entfile.c +programs/dthelp/parser/canon1/eltdef/entity2.h +programs/dthelp/parser/canon1/eltdef/error +programs/dthelp/parser/canon1/eltdef/estring.h +programs/dthelp/parser/canon1/eltdef/globdec.h +programs/dthelp/parser/canon1/eltdef/globdef.h +programs/dthelp/parser/canon1/eltdef/if.h +programs/dthelp/parser/canon1/eltdef/pfile.c +programs/dthelp/parser/canon1/eltdef/pval.h +programs/dthelp/parser/canon1/eltdef/sfile.c +programs/dthelp/parser/canon1/eltdef/signon.h +programs/dthelp/parser/canon1/eltdef/signonx.h +programs/dthelp/parser/canon1/eltdef/stfile.c +programs/dthelp/parser/canon1/eltdef/tfile.c +programs/dthelp/parser/canon1/helptag/LocaleXlate.c +programs/dthelp/parser/canon1/helptag/XlationSvc.c +programs/dthelp/parser/canon1/parser/dthelp_ctag1 +programs/dthelp/parser/canon1/parser/case.c +programs/dthelp/parser/canon1/parser/context.h +programs/dthelp/parser/canon1/parser/delim.dat +programs/dthelp/parser/canon1/parser/delim.h +programs/dthelp/parser/canon1/parser/error +programs/dthelp/parser/canon1/parser/parser +programs/dthelp/parser/canon1/util/context +programs/dthelp/parser/canon1/util/fclndir programs/dthelp/parser/pass1/build/arc.h programs/dthelp/parser/pass1/build/build programs/dthelp/parser/pass1/build/case.c diff --git a/cde/configure.ac b/cde/configure.ac index 9d30ce995..969faa1ff 100644 --- a/cde/configure.ac +++ b/cde/configure.ac @@ -520,6 +520,12 @@ programs/dthelp/parser/pass1/build/Makefile programs/dthelp/parser/pass1/eltdef/Makefile programs/dthelp/parser/pass1/helptag/Makefile programs/dthelp/parser/pass1/parser/Makefile +programs/dthelp/parser/canon1/Makefile +programs/dthelp/parser/canon1/util/Makefile +programs/dthelp/parser/canon1/build/Makefile +programs/dthelp/parser/canon1/eltdef/Makefile +programs/dthelp/parser/canon1/helptag/Makefile +programs/dthelp/parser/canon1/parser/Makefile programs/dthelp/parser/helptag/Makefile programs/nsgmls/Makefile diff --git a/cde/programs/dthelp/parser/Makefile.am b/cde/programs/dthelp/parser/Makefile.am index 549ce80f6..af5381c79 100644 --- a/cde/programs/dthelp/parser/Makefile.am +++ b/cde/programs/dthelp/parser/Makefile.am @@ -1,5 +1,5 @@ MAINTAINERCLEANFILES = Makefile.in -SUBDIRS = pass1 helptag +SUBDIRS = pass1 canon1 helptag -#NOTYET canon1 pass2 +#NOTYET pass2 diff --git a/cde/programs/dthelp/parser/canon1/build/Makefile.am b/cde/programs/dthelp/parser/canon1/build/Makefile.am new file mode 100644 index 0..e82964b05 --- /dev/null +++ b/cde/programs/dthelp/parser/canon1/build/Makefile.am @@ -0,0 +1,55 @@ +MAINTAINERCLEANFILES = Makefile.in + +noinst_PROGRAMS = build + +HELPTAG = .. +HELPTAGSRC= $(HELPTAG)/helptag +HELPPARSERSRC = $(HELPTAG)/parser +HELPELTDEFSRC = $(HELPTAG)/eltdef +HELPDTDFILE = $(HELPTAGSRC)/hptag.dtd +HELPUTILSRC = $(HELPTAG)/util +HELPBUILDSRC = $(
[cdesktopenv-devel] scripting CDE actions or f. commands, was Re: [PATCH] dtksh: allow parallel building
For what you want to do, you don't actually need to send an f. command at all; you should be able to execute an action more directly with dtaction ExitSession You have may have to do something to keep your script from getting killed after exiting the session but before issuing the shutdown command. Maybe nohup sh -c 'dtaction ExitSession;sleep 5;exec sudo shutdown -h now' >/dev/null 2>&1 or something like that (the exact way to issue the shutdown command with needed privileges and options will vary by OS and other considerations). If in some other circumstance, dtaction isn't good enough and you actually DO need to script f. commands, I wrote something years ago to do that. The attached file dtwmcmd.c, when compiled, should allow sending arbitrary f. commands to dtwm. (something similar might work with the smaller set of commands for mwm, I don't recall whether I tried) See the comments for examples of compiling it, although on anything other than Solaris, you probably want /usr/X11/include and /usr/X11/lib rather than /usr/openwin/include and /usr/openwin/lib; evidently on some systems you don't even need the options to find those. At any rate, they should at least identify the -l options needed. This is something like what libDtSvc does for a few functions that change the backdrop or initiate a dtwm restart, but the have the particular command hard-coded. And I reverse-engineered it long before CDE went open-source, by using xscope to see what was being passed around; it annoyed me that some command (dtstyle?) could trigger a dtwm restart when needed, but a provided script could only prompt the user to do the restart themselves. And being extra stubborn, here's a list of f. commands I dug both out of man pages and out of binaries (with strings command). The references are all to Solaris 9 man pages (Sun's version of CDE); the sdt* were commands peculiar to theirs (they had some of the TriTeal like stuff, such as a graphical workspace tool, although that wasn't among those referenced in my list). In practice, a lot of the commands are not terribly useful from a script (especially if they take some sort of implied window context), although one person wanted to cycle through workspaces in a loop with a sleep between, because they were driving a projection display to show multiple system monitoring screens repeatedly, one after another. The following are the man page references to dtwm "f." commands in Solaris 9. Primary description is dtwmrc(4), others may be incidental references. f.action dtwmrc(4), dticonfile(4), sdtdir2dtwmrc(1), sdthotkey(1) f.beep dtwmrc(4) f.circle_down dtwmrc(4) f.circle_up dtwmrc(4) f.create_workspace dtwmrc(4), sdthotkey(1) f.delete_workspace dtwmrc(4), sdthotkey(1) f.exec dtwmrc(4), dtwm(1), sdthotkey(1) f.focus_color dtwmrc(4) f.focus_key dtwmrc(4) f.focus_key_raise dtwmrc(4) f.goto_workspace dtwmrc(4), sdthotkey(1) f.help dtwmrc(4) f.help_mode dtwmrc(4) f.ignore dtwmrc(4) f.kill dtwmrc(4), dtwm(1), VendorShell(3x) f.lower dtwmrc(4), dtwm(1) f.marquee_selection dtwmrc(4) f.maximize dtwmrc(4), dtwm(1), VendorShell(3x) f.menu dtwmrc(4), sdtdir2dtwmrc(1) f.minimize dtwmrc(4), dtwm(1), VendorShell(3x) f.move dtwmrc(4), dtwm(1), VendorShell(3x) f.next_cmap dtwmrc(4) f.next_key dtwmrc(4) f.next_workspace dtwmrc(4), sdthotkey(1) f.nop dtwmrc(4) f.normalize dtwmrc(4) f.normalize_and_raise dtwmrc(4), dtwm(1) f.occupy_all dtwmrc(4) f.pack_icons dtwmrc(4), sdthotkey(1) f.pass_keys dtwmrc(4), sdthotkey(1) f.post_wmenu dtwmrc(4) f.prev_cmap dtwmrc(4) f.prev_key dtwmrc(4) f.prev_workspace dtwmrc(4), sdthotkey(1) f.quit_mwm dtwmrc(4) f.raise dtwmrc(4), dtwm(1) f.raise_lower dtwmrc(4), dtwm(1) f.refresh dtwmrc(4), dtwm(1), sdthotkey(1) f.refresh_win dtwmrc(4), dtwm(1) f.remove dtwmrc(4) f.resize dtwmrc(4), dtwm(1), VendorShell(3x) f.restart dtwmrc(4) f.restore dtwmrc(4) f.restore_and_raise dtwmrc(4), dtwm(1) f.screen dtwmrc(4), sdthotkey(1) f.send_msg dtwmrc(4), XmDeactivateProtocol(3x) f.separator dtwmrc(4) f.set_behavior dtwmrc(4) f.title dtwmrc(4), sdtdir2dtwmrc(1) f.toggle_frontpanel dtwmrc(4), sdthotkey(1) f.version dtwmrc(4) f.workspace_presence dtwmrc(4) Undocumented: f.change_backdrop (used somewhere in libDtSvc) usage: f.change_backdrop BackDropName HexPixmapIDNoLeading0x 0 (i.e. sender creates and loads pixmap, etc.); not sure whether final 0 arg could be anything else f.set_context (no known reference outside of dtwm) usage: unknown; incorrect (or perhaps any) usage may result in dtwm and/or X server crash dtwmcmd.c Description: Binary data > On Feb 15, 2021, at 13:14, cyrus torros wrote: > > Does anyone know how I can use f.action ExitSession > in a script? I am trying to chain that together with shut down because > its the only thing that saves my session properly. > > On 2/13/21, Jon Trulson wrote: >> On 2/12/21 9:08 AM, Chase via cdesktopenv-devel wrote: >>> This patch allows dtksh to be built in
Re: [cdesktopenv-devel] [PATCH] dtksh: allow parallel building
You can find dtwmcmd in this thread: https://sourceforge.net/p/cdesktopenv/mailman/cdesktopenv-devel/thread/be174e7b-9644-199c-bf90-f4a274c763bf%40radscan.com/ Best regards, Juergen. Am 15.02.21 um 19:14 schrieb cyrus torros: Does anyone know how I can use f.action ExitSession in a script? I am trying to chain that together with shut down because its the only thing that saves my session properly. On 2/13/21, Jon Trulson wrote: On 2/12/21 9:08 AM, Chase via cdesktopenv-devel wrote: This patch allows dtksh to be built in parallel in the autotools branch. It sure does :) Applied, thanks! -jon Thank you for your time, -Chase ___ cdesktopenv-devel mailing list cdesktopenv-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel -- Jon Trulson "Entropy. It isn't what it used to be." -- Sheldon ___ cdesktopenv-devel mailing list cdesktopenv-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel -- Juergen Mayerhofer Kochenthalerstr. 16 93155 Hemau Tel 09491/903503 Fax 09491/903505 Mobile 0179/292-1854 Mail juergen_mayerho...@yahoo.de ___ cdesktopenv-devel mailing list cdesktopenv-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel
Re: [cdesktopenv-devel] [PATCH] dtksh: allow parallel building
Does anyone know how I can use f.action ExitSession in a script? I am trying to chain that together with shut down because its the only thing that saves my session properly. On 2/13/21, Jon Trulson wrote: > On 2/12/21 9:08 AM, Chase via cdesktopenv-devel wrote: >> This patch allows dtksh to be built in parallel in the autotools branch. >> > > It sure does :) Applied, thanks! > > -jon > >> Thank you for your time, >> -Chase >> >> >> >> >> ___ >> cdesktopenv-devel mailing list >> cdesktopenv-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel > > -- > Jon Trulson > > "Entropy. It isn't what it used to be." >-- Sheldon > > ___ cdesktopenv-devel mailing list cdesktopenv-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel