summaryrefslogtreecommitdiff
path: root/Master/tlpkg/etc/dev.postaction-in-tlpsrc.patch.README
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/etc/dev.postaction-in-tlpsrc.patch.README')
-rw-r--r--Master/tlpkg/etc/dev.postaction-in-tlpsrc.patch.README29
1 files changed, 29 insertions, 0 deletions
diff --git a/Master/tlpkg/etc/dev.postaction-in-tlpsrc.patch.README b/Master/tlpkg/etc/dev.postaction-in-tlpsrc.patch.README
new file mode 100644
index 00000000000..ee6f6d67b39
--- /dev/null
+++ b/Master/tlpkg/etc/dev.postaction-in-tlpsrc.patch.README
@@ -0,0 +1,29 @@
+dev.postaction-in-tlpsrc.patch
+==============================
+
+The idea is to move stuff from TLPostActions.pm into the tlpsrc files.
+The format would be:
+ postaction shortcut name=name type=menu icon=... cmd=... args=... hide=0
+ postaction shortcut name=name type=menu icon=... cmd=... args=... hide=0
+ postaction shortcut name=name type=desktop icon=... cmd=... args=... hide=1
+ postaction filetype name=TLPostScript cmd=...
+ postaction fileassoc extension=.ps filetype=TLPostScript
+ postaction code ...something till now undecided....
+
+These actions would be called by install-tl and tlmgr on install time
+and from tlmgr at removal time.
+
+Problems I have found while implementing:
+- add_desktop_shortcut (from TLWinGoo) needs the $texdirw (writable
+ texdir) variable to update the unshort.bat script.
+
+ What about getting rid of the unshort.bat completely and calling all
+ the TLPostActions.pm PostRemoval actions, and here the postactions with
+ "remove" argument, so that all shortcuts are removed that way.
+
+- how to implement the postaction code stuff. What about:
+ postaction code install=sub_name_a remove=sub_name_b file=texmf-dist/scripts/foo/bar/baz.pl
+ which will trigger the require of that script and at install time the
+ call of sub_name_a and at removal time the call of sub_name_b, both
+ within an eval to catch any errors.
+