summaryrefslogtreecommitdiff
path: root/libs/ardour/export_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/export_handler.cc')
-rw-r--r--libs/ardour/export_handler.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/ardour/export_handler.cc b/libs/ardour/export_handler.cc
index 7ca6cb8c53..042edaf788 100644
--- a/libs/ardour/export_handler.cc
+++ b/libs/ardour/export_handler.cc
@@ -293,6 +293,16 @@ ExportHandler::finish_timespan ()
export_cd_marker_file (current_timespan, fmt, filepath, CDMarkerTOC);
}
+ if (!fmt->command().empty()) {
+ std::string command = string_compose(fmt->command(),
+ filepath,
+ Glib::path_get_dirname(filepath),
+ PBD::basename_nosuffix(filepath)
+ );
+ std::cerr << "running command: " << command << "..." << std::endl;
+ system(command.c_str());
+ }
+
if (fmt->upload()) {
SoundcloudUploader *soundcloud_uploader = new SoundcloudUploader;
std::string token = soundcloud_uploader->Get_Auth_Token(upload_username, upload_password);