rebar/inttest/appup_src_script/src/app.appup.src.script
Luis Rascao 53fbb7cf8e Support .appup.src[.script] files
Similar to how .app.src are being handled, all files in directory
.src ending with .appup.src are processed, checked for
correctness and copied to ebin without the .src extension.

By way of using rebar_config:consult_file/1, .appup.src.script
files are automatically supported in exactly the same manner
as in .app.src.script.
2015-02-04 22:33:16 +00:00

9 lines
249 B
Text

%% decompose the appup
[{AppVersion,
[{UpgradeFrom, UpgradeInstructions}],
[{DowngradeTo, DowngradeInstructions}]}] = CONFIG,
%% and replace the version strings
[{"2.1.2",
[{"2.1.1", UpgradeInstructions}],
[{"2.1.1", DowngradeInstructions}]}].