summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorSiep Kroonenberg <siepo@cybercomm.nl>2011-05-15 19:22:45 +0000
committerSiep Kroonenberg <siepo@cybercomm.nl>2011-05-15 19:22:45 +0000
commitabd1c463b3283d9822a1d7ff8da2f9ef169edb65 (patch)
tree80569dada1aac464c128b9efb50464f0ec27d5f0 /Master
parent0dc1831510c7e76deab33e5fd5eb97ec4651be5e (diff)
Tl-tray-menu: example custom menu and message box to explain custom menu
git-svn-id: svn://tug.org/texlive/trunk@22484 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-xMaster/tl-tray-menu.exebin57856 -> 61952 bytes
-rwxr-xr-xMaster/tlpkg/installer/tl-tray-menu-custom.bat51
2 files changed, 51 insertions, 0 deletions
diff --git a/Master/tl-tray-menu.exe b/Master/tl-tray-menu.exe
index f2b8c88175f..9593078599c 100755
--- a/Master/tl-tray-menu.exe
+++ b/Master/tl-tray-menu.exe
Binary files differ
diff --git a/Master/tlpkg/installer/tl-tray-menu-custom.bat b/Master/tlpkg/installer/tl-tray-menu-custom.bat
new file mode 100755
index 00000000000..2c284b54697
--- /dev/null
+++ b/Master/tlpkg/installer/tl-tray-menu-custom.bat
@@ -0,0 +1,51 @@
+@ECHO OFF
+
+rem Copy to the root of the TeX Live installation and customize as needed,
+rem e.g. by substituting different editors.
+rem The system tray menu has already taken care of the searchpath.
+
+SETLOCAL ENABLEEXTENSIONS
+SETLOCAL ENABLEDELAYEDEXPANSION
+
+set tlroot=%~dp0
+
+:menuloop
+
+set ans=
+cls
+
+echo === TeX Live Menu ===
+echo.
+echo 1 TexMakerX
+echo 2 Emacs
+echo 3 Notepad
+
+echo Q Quit
+echo.
+set /p ans="Make a choice: "
+
+if "%ans%"=="1" (
+ %tlroot%texmakerx\texmakerx.exe
+ exit
+)
+
+if "%ans%"=="2" (
+ rem load emacs with the included initialization file _emacs
+ %tlroot%emacs\bin\emacs.exe -q -l %tlroot%emacs\_emacs
+ exit
+)
+
+if "%ans%"=="3" (
+ %windir%\notepad.exe
+ exit
+)
+
+if "%ans%"=="Q" (
+ exit
+)
+
+if "%ans%"=="q" (
+ exit
+)
+
+goto :menuloop