diff options
author | Karl Berry <karl@freefriends.org> | 2020-09-07 21:20:24 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-09-07 21:20:24 +0000 |
commit | 3581485c7b70a58b3297157f006b3260ce2b11c0 (patch) | |
tree | 7493facad0c203d2a510429fb6390bd768557b6e /Master/texmf-dist/scripts | |
parent | 1e344e124afbe50246056ecedd45ff8f580f623b (diff) |
lua-physical (7sep20)
git-svn-id: svn://tug.org/texlive/trunk@56283 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts')
-rw-r--r-- | Master/texmf-dist/scripts/lua-physical/physical-init.lua | 53 | ||||
-rwxr-xr-x | Master/texmf-dist/scripts/lua-physical/physical.lua | 52 |
2 files changed, 51 insertions, 54 deletions
diff --git a/Master/texmf-dist/scripts/lua-physical/physical-init.lua b/Master/texmf-dist/scripts/lua-physical/physical-init.lua deleted file mode 100644 index fa2e9eceb11..00000000000 --- a/Master/texmf-dist/scripts/lua-physical/physical-init.lua +++ /dev/null @@ -1,53 +0,0 @@ ---[[ - -lua-physical - -Author: Thomas Jenni -Version: 1.0.1 -Date: 2020-09-05 - -License: MIT - -Copyright (c) 2020 Thomas Jenni - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -]]-- - -local current_folder = (...):gsub('%.physical%-init$', '') - --- Source: http://kiki.to/blog/2014/04/12/rule-5-beware-of-multiple-files/ - -local Dimension = require(current_folder .. '.physical-dimension') -local Unit = require(current_folder .. '.physical-unit') -local Quantity = require(current_folder .. '.physical-quantity') -local Number = require(current_folder .. '.physical-number') - -require(current_folder .. '.physical-definition') - -local Data = require(current_folder .. '.physical-data') - -local m = { - Dimension = Dimension, - Unit = Unit, - Number = Number, - Quantity = Quantity, - Data = Data -} - -return m
\ No newline at end of file diff --git a/Master/texmf-dist/scripts/lua-physical/physical.lua b/Master/texmf-dist/scripts/lua-physical/physical.lua index 3bbbc00efe4..2af9d7677a3 100755 --- a/Master/texmf-dist/scripts/lua-physical/physical.lua +++ b/Master/texmf-dist/scripts/lua-physical/physical.lua @@ -1 +1,51 @@ -return require((...) .. '.physical-init')
\ No newline at end of file +--[[ + +lua-physical + +Author: Thomas Jenni +Version: 1.0.2 +Date: 2020-09-07 + +License: MIT + +Copyright (c) 2020 Thomas Jenni + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +]]-- + +-- Source: http://kiki.to/blog/2014/04/12/rule-5-beware-of-multiple-files/ + +local Dimension = require('physical-dimension') +local Unit = require('physical-unit') +local Quantity = require('physical-quantity') +local Number = require('physical-number') + +require('physical-definition') + +local Data = require('physical-data') + +local m = { + Dimension = Dimension, + Unit = Unit, + Number = Number, + Quantity = Quantity, + Data = Data +} + +return m
\ No newline at end of file |