diff options
author | Norbert Preining <preining@logic.at> | 2008-05-18 15:21:41 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2008-05-18 15:21:41 +0000 |
commit | a41b87d8e9a290598afabbce0afa461426e39dc7 (patch) | |
tree | fd070b860ec161574d6092078033c5ae8109f0ec /Master/tlpkg/TeXLive | |
parent | 60aa6779744c7c0bf4dc2fa08c5f7bc29d224ffd (diff) |
TLPostActions.pm: Add all the live.pdf documents for the different languages
git-svn-id: svn://tug.org/texlive/trunk@8206 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/TeXLive')
-rw-r--r-- | Master/tlpkg/TeXLive/TLPostActions.pm | 155 |
1 files changed, 153 insertions, 2 deletions
diff --git a/Master/tlpkg/TeXLive/TLPostActions.pm b/Master/tlpkg/TeXLive/TLPostActions.pm index 6801f694e49..722916a4a96 100644 --- a/Master/tlpkg/TeXLive/TLPostActions.pm +++ b/Master/tlpkg/TeXLive/TLPostActions.pm @@ -156,7 +156,7 @@ sub do_install_texlive_en { if (win32()) { add_menu_shortcut( $mainmenu, - 'TeXLive Manual (en)', + 'TeX Live Manual (en)', '', # default pdf icon $texdir.'/texmf-doc/doc/english/texlive-en/live.pdf', '', @@ -167,13 +167,164 @@ sub do_install_texlive_en { sub do_remove_texlive_en { my ($texdir) = @_; if (win32()) { - remove_menu_shortcut($mainmenu,'TeXLive Manual (en)'); + remove_menu_shortcut($mainmenu,'TeX Live Manual (en)'); } } $PostInstall{'texlive-en'} = \&do_install_texlive_en; $PostRemove{'texlive-en'} = \&do_remove_texlive_en; # +# texlive-cz +# +sub do_install_texlive_cz { + my ($texdir) = @_; + if (win32()) { + add_menu_shortcut( + $mainmenu, + 'TeX Live Manual (cz)', + '', # default pdf icon + $texdir.'/texmf-doc/doc/czechslovak/texlive-cz/live.pdf', + '', + '', + ); + } +} +sub do_remove_texlive_cz { + my ($texdir) = @_; + if (win32()) { + remove_menu_shortcut($mainmenu,'TeX Live Manual (cz)'); + } +} +$PostInstall{'texlive-cz'} = \&do_install_texlive_cz; +$PostRemove{'texlive-cz'} = \&do_remove_texlive_cz; + +# +# texlive-fr +# +sub do_install_texlive_fr { + my ($texdir) = @_; + if (win32()) { + add_menu_shortcut( + $mainmenu, + 'TeX Live Manual (fr)', + '', # default pdf icon + $texdir.'/texmf-doc/doc/french/texlive-fr/live.pdf', + '', + '', + ); + } +} +sub do_remove_texlive_fr { + my ($texdir) = @_; + if (win32()) { + remove_menu_shortcut($mainmenu,'TeX Live Manual (fr)'); + } +} +$PostInstall{'texlive-fr'} = \&do_install_texlive_fr; +$PostRemove{'texlive-fr'} = \&do_remove_texlive_fr; + +# +# texlive-ge +# +sub do_install_texlive_ge { + my ($texdir) = @_; + if (win32()) { + add_menu_shortcut( + $mainmenu, + 'TeX Live Manual (de)', + '', # default pdf icon + $texdir.'/texmf-doc/doc/german/texlive-ge/live.pdf', + '', + '', + ); + } +} +sub do_remove_texlive_ge { + my ($texdir) = @_; + if (win32()) { + remove_menu_shortcut($mainmenu,'TeX Live Manual (de)'); + } +} +$PostInstall{'texlive-ge'} = \&do_install_texlive_ge; +$PostRemove{'texlive-ge'} = \&do_remove_texlive_ge; + +# +# texlive-pl +# +sub do_install_texlive_pl { + my ($texdir) = @_; + if (win32()) { + add_menu_shortcut( + $mainmenu, + 'TeX Live Manual (pl)', + '', # default pdf icon + $texdir.'/texmf-doc/doc/polish/texlive-pl/live.pdf', + '', + '', + ); + } +} +sub do_remove_texlive_pl { + my ($texdir) = @_; + if (win32()) { + remove_menu_shortcut($mainmenu,'TeX Live Manual (pl)'); + } +} +$PostInstall{'texlive-pl'} = \&do_install_texlive_pl; +$PostRemove{'texlive-pl'} = \&do_remove_texlive_pl; + +# +# texlive-ru +# +sub do_install_texlive_ru { + my ($texdir) = @_; + if (win32()) { + add_menu_shortcut( + $mainmenu, + 'TeX Live Manual (ru)', + '', # default pdf icon + $texdir.'/texmf-doc/doc/russian/texlive-ru/live.pdf', + '', + '', + ); + } +} +sub do_remove_texlive_ru { + my ($texdir) = @_; + if (win32()) { + remove_menu_shortcut($mainmenu,'TeX Live Manual (ru)'); + } +} +$PostInstall{'texlive-ru'} = \&do_install_texlive_ru; +$PostRemove{'texlive-ru'} = \&do_remove_texlive_ru; + +# +# texlive-zh-cn +# +sub do_install_texlive_zh_cn { + my ($texdir) = @_; + if (win32()) { + add_menu_shortcut( + $mainmenu, + 'TeX Live Manual (zh-cn)', + '', # default pdf icon + $texdir.'/texmf-doc/doc/chinese/texlive-zh-cn/live.pdf', + '', + '', + ); + } +} +sub do_remove_texlive_zh_cn { + my ($texdir) = @_; + if (win32()) { + remove_menu_shortcut($mainmenu,'TeX Live Manual (zh-cn)'); + } +} +$PostInstall{'texlive-zh-cn'} = \&do_install_texlive_zh_cn; +$PostRemove{'texlive-zh-cn'} = \&do_remove_texlive_zh_cn; + + +# # FROM HERE ON ONLY DISABLED POST INSTALL AND REMOVE ACTIONS!!!!!!! # |