summaryrefslogtreecommitdiff
path: root/Master/tlpkg/TeXLive/TLConfig.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/TeXLive/TLConfig.pm')
-rw-r--r--Master/tlpkg/TeXLive/TLConfig.pm73
1 files changed, 73 insertions, 0 deletions
diff --git a/Master/tlpkg/TeXLive/TLConfig.pm b/Master/tlpkg/TeXLive/TLConfig.pm
index eca234e5c96..536cbc33a50 100644
--- a/Master/tlpkg/TeXLive/TLConfig.pm
+++ b/Master/tlpkg/TeXLive/TLConfig.pm
@@ -32,6 +32,11 @@ BEGIN {
$WindowsMainMenuName
$RelocPrefix
$RelocTree
+ %TLPDBSettingType
+ %TLPDBSettingDesc
+ %TLPDBOptionType
+ %TLPDBOptionDesc
+ %TLPDBOptionTlmgrName
);
@EXPORT = @EXPORT_OK;
}
@@ -98,8 +103,76 @@ our @AllowedConfigOptions = qw/
autobackup
/;
+#
+# definition of the option strings and their value types
+# possible types are:
+# - u: url
+# - b: boolean, saved as 0/1
+# - p: path (local path)
+# - n: naturnal number
+# it allows n:[a]..[b]
+# if a is empty start at -infty
+# if b is empty end at +infty
+# so "n:.." is equivalent to "n"
+
+# WARNING: keep these in sync!
+#
+our %TLPDBOptionTlmgrName = (
+ "location" => "location",
+ "create_formats" => "formats",
+ "desktop_integration" => "deskint",
+ "file_assocs" => "fileassocs",
+ "post_code" => "postcode",
+ "sys_bin" => "sys_bin",
+ "sys_info" => "sys_info",
+ "sys_man" => "sys_man",
+ "install_docfiles" => "docfiles",
+ "install_srcfiles" => "srcfiles",
+ "w32_multi_user" => "multiuser",
+ "autobackup" => "autobackup",
+ "backupdir" => "backupdir");
+our %TLPDBOptionType = (
+ "location" => "u",
+ "create_formats" => "b",
+ "desktop_integration" => "b",
+ "file_assocs" => "b",
+ "post_code" => "b",
+ "sys_bin" => "p",
+ "sys_info" => "p",
+ "sys_man" => "p",
+ "install_docfiles" => "b",
+ "install_srcfiles" => "b",
+ "w32_multi_user" => "b",
+ "autobackup" => "n:-1..",
+ "backupdir" => "p");
+our %TLPDBOptionDesc = (
+ "location" => "Default installation location",
+ "create_formats" => "Create formats on installation",
+ "desktop_integration" => "Create shortcuts (menu and desktop) in postinst",
+ "file_assocs" => "Change file associations in postinst",
+ "post_code" => "Run postinst code blobs",
+ "sys_bin" => "Destination for symlinks for binaries",
+ "sys_info" => "Destination for symlinks for info docs",
+ "sys_man" => "Destination for symlinks for man pages",
+ "install_docfiles" => "Install documentation files",
+ "install_srcfiles" => "Install source files",
+ "w32_multi_user" => "Install for shortcuts/menu items for all users (w32)",
+ "autobackup" => "Number of backups to keep",
+ "backupdir" => "Directory for backups");
+
+our %TLPDBSettingType = (
+ "platform" => "s",
+ "available_architectures" => "l"
+);
+our %TLPDBSettingDesc = (
+ "platform" => "Main platform for this computer",
+ "available_architectures" => "All available/installed architectures"
+);
+
+
our $WindowsMainMenuName = "TeX Live $ReleaseYear";
+
1;