Quote:
Originally Posted by Claudiohbsantos
This is to cfillion or any of you guys who are more familiar with reapack-index than me.
Regarding the use of @provides and library .lua files.
If I have 4 or 5 different scripts that all use the same library, how can I use @provides to automatically download the library file without getting conflicts since they all link to the same file?
ON a side note, is there a clean way of updating the tile of a script in a reapack entry after it's been comitted once? I've tried -a (amend) and --rebuild and they both keep the first name committed, forcing me to create a new file in order to force a name change.
|
Until cfillion chimes in...
I've done this recently when adding nantho's gain staging scripts (two of them which both rely on a a script by spk).
cfillion advised me to automatically create a subfolder in the main scripts via @provides where the library file(s) go (that is, a different subfolder per main script).
In this case:
Code:
* Provides: [nomain] spk77_Get max peak val and pos from take_function.lua > Nantho_PeakVsRMS/spk77_Get max peak val and pos from take_function.lua
and in the other main script:
Code:
* Provides: [nomain] spk77_Get max peak val and pos from take_function.lua > Nantho_PeakVsLUFS/spk77_Get max peak val and pos from take_function.lua
quote from the below linked discussion:
Quote:
You could provide a renamed copy of the file like this, without having to make two copies of it on the GitHub repo. The new name used when installing is specified after a > character in the provides line next to the original path.
|
https://github.com/ReaTeam/ReaScript...0vs.%20RMS.lua
https://github.com/ReaTeam/ReaScript...vs.%20LUFS.lua
Then remember to adjust the path to the library file(s) in the main scripts accordingly.
(cfillion or anyone may correct me if there's a more suitable way)
Here's the discussion we had about this:
https://github.com/ReaTeam/ReaScripts/pull/58