1
0
mirror of synced 2026-01-13 15:37:38 +00:00

53 Commits

Author SHA1 Message Date
Frank Halasz
415a698df5
Overhaul of loadup scripts (#1699)
* Make medley.sh and its associated scripts POSIX compliant - i.e., debashify them

* Added config file for medley script, medley now reads from config file and prepends arguemnts from file to the copmmand line arguments

* WIP. Updates to medley.sh scripts.

* WIP.  More on medley.sh and friends update.

* WIP. Medley redo

* WIP.  Debugging new medley scripts

* Renamed medley.sh/medley.command to be medley_main.sh.  Added code to compile single medley.sh/medley.command script by inlining all of the source'd medley_*.sh files.

* Add temp fix for cygwin Issue #1685

* Minor fixup to medley_utils.sh; take debug code out out of run_medley

* Add README to medley directory to explain how to compile medley.sh (medley.command).

* Ooops. This time really adding the README file to the medley directory explaining how to compile medley.sh (medley.command)

* Update loadup- scripts to use updated medley scripts rather than run-medley

* Fix default setting of $config_file in medley_configfile.sh

* Redo medley compile to pick up last commikt

* Fixing how maiko exe is found and sysout argument error processing - both issues discovered testing on MAcOS

* In medley_configfile, replace echo with printf %s because echo - does not work in zsh

* Supress config file on loadups calls to Medley

* Add oldschool support (use original run-medley) to loadup scripts; improve FAILURE detection so loadup-all won't proceed once one of the components fails

* Add in medley_args.sh add -prog as synonym to --maikoprog to aid in loadup scripts; in medley_run.sh script try to get a good exit code for call to maiko, especially useful for loadup scripts

* Run loadup scripts thru shellcheck and update as necessary to make Posix compliant

* Get rid of -nt comparisons in loadup-setup.sh because they are not posix-complaint.  They were not really needed anyway.

* Removing (for now) use of lde exit codes to decide FAILURE case in loadup-setup.sh since exit codes from lde apperar to be inverted on MacOS.

* Update medley man page.  Add - functionality to more args is medley_args.sh

* Compile medley.sh with changes from last commit

* Ooops.  Left medley_args.sh changes out of last commit.  Rectifying here.

* Added support for LDEKEYBOARDTYPE to medley_run to match run-medley

* Add to medley.sh: auto numbered id's and titles with id's inserted

* Cleanup some shellcheck issues in medley_main.sh

* fix maiko args -nh-xxx.  were -nethub-xxxx. In medley_run.sh

* Overhaul handling of pass-on args to manage the quoting issues prevelant in the previous implementation

* Cleanup minor shellcheck issues in medley_*.sh scripts

* Add underscore as character allowed in ids - makes things clearer when id used with +

* Add a self-numbering id to medley calls in loadup scripts

* Put workaround in medley_run.sh for Issue #1702 - issues with sysout arg processing in Maiko

* Oops.  messed up LDESRCSYSOUT in last commit.  should be LDESOURCESYSOUT

* compile medley.sh
2024-05-09 21:31:27 -07:00
Frank Halasz
914604a6eb Set LDEKBDTYPE to X in run-medley - if not already set. Fixes issue with loading VIRTUALKEYBOARDS 2023-11-13 12:42:34 -08:00
Matt Heffron
cb8eab788a Modify launcher to enable --title STRING option to work when STRING has embedded spaces (multiple words). 2023-10-17 23:40:26 -07:00
Frank Halasz
02665ca91b
Change github workflows to provide MacOs full release zip file (#1290) 2023-09-17 23:03:18 -07:00
Nick Briggs
16dd66a016
Pass --display/-d argument as -display not by setting DISPLAY env variable. (#1213) 2023-05-16 19:28:21 -07:00
Larry Masinter
654675661f
Do not set keyboard type without knowing better (#1211) 2023-05-16 10:05:31 -07:00
Nick Briggs
d9c144d966
Allow user override of -title option (#1026) 2022-11-21 13:04:07 -08:00
Nick Briggs
17dd03a358
Use -title rather than -t to specify window title (#1020) 2022-11-14 09:48:21 -08:00
Larry Masinter
418b1df00d
run-medley has a -NF option in caps used by loadup, means no fork (#978) 2022-10-13 20:35:37 -07:00
Larry Masinter
06368f95eb
run-medley should not quote patterns in 'case' command, either useless or broken (#977) 2022-10-08 10:04:46 -07:00
Larry Masinter
8441c257d5 Use -NF (no fork) on ldinit during loadup 2022-07-20 08:04:38 -07:00
Larry Masinter
2120f5f458 loadup and run-medley script bug fixes 2022-07-16 11:51:58 -07:00
Larry Masinter
32128f5e19
MEDLEY-UILS loadup-db run-medley fixes (#808)
* MEDLEY-UILS loadup-db run-medley fixes

* UNIXCOMM compile to DFASL; only set UTF-8 if getenv(LANG). loadup-db no lisp.virtualmem
2022-06-28 11:45:59 -07:00
Nick Briggs
f262c98f53
Fixes test in run-medley for inferred medley directory (#793) 2022-06-12 08:35:54 -07:00
Larry Masinter
b1634ef140
Change init to MEDLEYDIR-INIT (suitable for run-medley configs) and added BACKGROUND-YIELD (#568)
* Change init to MEDLEYDIR-INIT (suitable for run-medley configs) and added BACKGROUND-YIELD

* fix permissions

* fix up odd characters inserted by tedit

* Editing sh files in TEdit left stuff in run-medley
2021-11-21 12:23:28 -08:00
Larry Masinter
a4370ae57d Put -noscroll first in usage at head 2021-10-04 15:03:49 -07:00
Larry Masinter
1380722e55 Add -noscroll option to run-medley; turns off scollbars 2021-09-30 17:22:19 -07:00
Larry Masinter
8ec1ca966d
If lde is on path, don't bother with MAIKODIR (#478) 2021-09-13 21:34:03 -07:00
Larry Masinter
d6f7ad7de9
run-medley improvements (#476) 2021-09-13 05:54:31 -07:00
Larry Masinter
0e2e16f183
changes from #453 redone: NOGREET for run-medley, dummy HOME LOGINDIR for loadups (#464) 2021-09-09 22:26:06 -07:00
Nick Briggs
558f4c6655
Loadup failure ldeinit (#286)
* a litte better info and checking

* fix typo

Co-authored-by: Larry Masinter <LMM@acm.org>
2021-03-19 15:45:20 -07:00
Larry Masinter
621c93c3a9
add options to run-medley for new sysouts (#259) 2021-03-12 05:35:44 +00:00
Larry Masinter
7c2ca9116f Forgot an instance of xfull35 => full 2021-03-07 08:53:19 -08:00
Larry Masinter
22e54106da add -m -mem option to Medley, default is 256 2021-03-01 20:51:51 -08:00
Larry Masinter
1dcd55b258 Merge in changed files 2021-02-28 18:08:43 -08:00
Nick Briggs
14415e197f
Fix run-medley -dimensions processing to make sensible choices (#217)
Given a "-dimension WxH" argument, round up the W to a multiple of 32 for the
Lisp window width and use an X window geometry with an additional
22 pixels for both W and H to account for the current scrollbar size so that
the resulting X window will not require scrolling.
2021-02-28 01:59:06 +00:00
Larry Masinter
30e47fc811 Remove use of ~/rem.cm in loadups. Now the LDEINIT file is checked instead; probably can get rid of even that, later 2021-02-22 16:12:20 -08:00
Larry Masinter
7b1c12989f run-medley -prog option for selecting ldeinit; update screen dimensions 2021-02-18 10:22:46 -08:00
Larry Masinter
9143c29cca Push to get new loadups for making an init, loadup a lisp and then a full 2021-02-14 00:08:37 -08:00
Larry Masinter
647ed31704 remove expectation of system.hash. make run-medley work from wherever. add in eol diff fix 2021-01-17 15:13:06 -08:00
Larry Masinter
3374d8cb53 fix script perms 2020-12-24 19:28:33 -08:00
Larry Masinter
ec383ad7a0 git clone pronlrmd
i was having trouble cloning medley from windows; worked fine in WSL.

This is what GitHub Desktop for windows thinks needs to be done.
2020-12-24 18:58:46 -08:00
Larry Masinter
68c5f7c65b -geometry was broken 2020-12-14 14:46:41 -08:00
Larry Masinter
b221975603 Don't change LOGINDIR LDEINIT default if already set 2020-12-12 13:23:18 -08:00
Abe Jellinek
3aaa8c9837 Update run-medley
- Pass through args correctly
- Help text that matches (more or less) the available params
- Add --dimensions to make setting screen size and geometry straightforward
2020-12-02 13:32:01 -08:00
Larry Masinter
5584b38276 avoid using ~ or 2020-11-30 15:54:28 -08:00
Larry Masinter
1bbb2344d7 Didn't expand ~ for lisp.virtualmem 2020-11-30 11:14:23 -08:00
Larry Masinter
1935a35bf9 rewrite to merge in Abe's changes to run-medley and test 2020-11-29 15:08:08 -08:00
Larry Masinter
a25d98081a fix bugs and start working on loadup changes 2020-11-28 10:54:11 -08:00
Larry Masinter
968b5d96a2 add more options to run-medley; fix HELPSYS compile problem 2020-11-27 10:18:42 -08:00
Larry Masinter
01a532491b reduce options to simplify 2020-11-26 21:21:57 -08:00
Larry Masinter
6f66ab388c merge LOCAL-INIT with ron's and simplify some 2020-11-24 11:41:19 -08:00
Abe Jellinek
c9c0113258 run-medley: quote our variables for safety. 2020-11-23 18:59:28 -08:00
Abe Jellinek
f78657b173 run-medley: remove old/inaccurate comments. 2020-11-23 18:52:31 -08:00
Abe Jellinek
0704402930 Rename run-medley args, pass unknowns through.
This allows for a more consistent command-line interface that doesn't
have to duplicate lde's argument parsing. We handle four arguments that
are inconvenient when calling lde directly or that require setting
environment variables, and then the rest is passed through.

At this point, `run-medley-mac` shouldn't be necessary, but I haven't
tested this revised script on a Mac yet, so I'm leaving it be for now.
2020-11-23 18:43:58 -08:00
Abe Jellinek
ba65225017 Translate run-medley from csh to POSIX sh.
This is just a first step: a direct translation for compatibility with
non-csh shells. The only change that I made in the logic was to conform
to the directory structure of this branch (`initfiles/local-init` ->
`greetfiles/LOCAL-INIT`).
2020-11-22 16:44:48 -08:00
Larry Masinter
6424116dc9 massive reorganization 2020-11-15 19:22:14 -08:00
Larry Masinter
6a758f1aa9 make medley repo match Ron's dropbox
this will give us a stable point on which we can make changes in coordination via git.
NO MORE USING A SHARED DROPBOX
Last major commit wihout a PR against a Medley issue.
2020-10-29 15:31:53 -07:00
Abe Jellinek
8a41d3058a Add screensize to help 2020-10-12 14:54:11 -07:00
Abe Jellinek
367b3a9b7e Add -screensize arg to run-medley 2020-10-12 10:45:37 -07:00