diff options
author | Norbert Preining <preining@logic.at> | 2009-08-05 16:19:41 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2009-08-05 16:19:41 +0000 |
commit | edd31659b22ab4d3718918fca2ac2506fe118474 (patch) | |
tree | 55a9f86d0262db51a6e5c31c960c98ca1eeefbd1 /Master/tlpkg/TeXLive/TLConfig.pm | |
parent | 272f667ff1987bad105a0f13f0337e9813671862 (diff) |
move all the options from the .tlpsrc files to hashes in TLConfig
and initialize the respective tlpobjs (00texlive.installation and
00texlive.config) from the values in these hashes. Update tl-update-tlpdb
to use that, and add some comments to the tlpsrc files
git-svn-id: svn://tug.org/texlive/trunk@14542 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/TeXLive/TLConfig.pm')
-rw-r--r-- | Master/tlpkg/TeXLive/TLConfig.pm | 48 |
1 files changed, 31 insertions, 17 deletions
diff --git a/Master/tlpkg/TeXLive/TLConfig.pm b/Master/tlpkg/TeXLive/TLConfig.pm index 0313be0bf81..73703489569 100644 --- a/Master/tlpkg/TeXLive/TLConfig.pm +++ b/Master/tlpkg/TeXLive/TLConfig.pm @@ -18,6 +18,7 @@ BEGIN { $MetaCategoriesRegexp $CategoriesRegexp $DefaultCategory + $DefaultContainerFormat $DefaultContainerExtension $InfraLocation $DatabaseName @@ -33,6 +34,7 @@ BEGIN { $RelocTree %TLPDBOptions %TLPDBSettings + %TLPDBConfigs ); @EXPORT = @EXPORT_OK; } @@ -64,7 +66,8 @@ our $DatabaseName = "texlive.tlpdb"; our $BlockSize = 4096; # the way we package things on the web -our $DefaultContainerExtension = "tar.xz"; +our $DefaultContainerFormat = "xz"; +our $DefaultContainerExtension = "tar.$DefaultContainerFormat"; our $Archive = "archive"; our $TeXLiveServerURL = "http://mirror.ctan.org"; @@ -84,6 +87,15 @@ if ($^O=~/^MSWin(32|64)$/i) { } # +# stuff formerly set in 00texlive.config +# +our %TLPDBConfigs = ( + "container_split_src_files" => 1, + "container_split_doc_files" => 1, + "container_format" => $DefaultContainerFormat, + "release" => $ReleaseYear ); + +# # definition of the option strings and their value types # possible types are: # - u: url @@ -98,61 +110,63 @@ if ($^O=~/^MSWin(32|64)$/i) { # WARNING: keep these in sync! # # $TLPDBOptions{"option"}->[0] --> type -# ->[1] --> tlmgr name -# ->[2] --> tlmgr description +# ->[1] --> default value +# ->[2] --> tlmgr name +# ->[3] --> tlmgr description + our %TLPDBOptions = ( "location" => - [ "u", + [ "u", "__MASTER__", "location", "Default installation location" ], "create_formats" => - [ "b", + [ "b", 1, "formats", "Create formats on installation" ], "desktop_integration" => - [ "b", + [ "b", 1, "desktop_integration", "Create shortcuts (menu and desktop) in postinst" ], "file_assocs" => - [ "n:0..2", + [ "n:0..2", 1, "fileassocs", "Change file associations in postinst" ], "post_code" => - [ "b", + [ "b", 1, "postcode", "Run postinst code blobs" ], "sys_bin" => - [ "p", + [ "p", "/usr/local/bin", "sys_bin", "Destination for symlinks for binaries" ], "sys_man" => - [ "p", + [ "p", "/usr/local/man", "sys_man", "Destination for symlinks for man pages" ], "sys_info" => - [ "p", + [ "p", "/usr/local/info", "sys_info", "Destination for symlinks for info docs" ], "install_docfiles" => - [ "b", + [ "b", 1, "docfiles", "Install documentation files" ], "install_srcfiles" => - [ "b", + [ "b", 1, "srcfiles", "Install source files" ], "w32_multi_user" => - [ "b", + [ "b", 1, "multiuser", "Install for shortcuts/menu items for all users (w32)" ], "autobackup" => - [ "n:-1..", + [ "n:-1..", 0, "autobackup", "Number of backups to keep" ], "backupdir" => - [ "p", + [ "p", "", "backupdir", - "Directory for backups" ] + "Directory for backups" ], ); |