13
0

Merge branch 'ardour'

This commit is contained in:
Robin Gareus 2024-05-22 18:37:12 +02:00
commit a68baf8028
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
3 changed files with 23 additions and 6 deletions

View File

@ -82,14 +82,15 @@ run_functor_for_paths (vector<string>& result,
bool recurse)
{
for (vector<string>::const_iterator i = paths.begin(); i != paths.end(); ++i) {
string expanded_path = path_expand (*i);
DEBUG_TRACE (DEBUG::FileUtils,
string_compose("Find files in expanded path: %1\n", expanded_path));
if (!Glib::file_test (expanded_path, Glib::FILE_TEST_IS_DIR)) continue;
try
{
string expanded_path = path_expand (*i);
DEBUG_TRACE (DEBUG::FileUtils,
string_compose("Find files in expanded path: %1\n", expanded_path));
if (!Glib::file_test (expanded_path, Glib::FILE_TEST_IS_DIR)) continue;
Glib::Dir dir(expanded_path);
for (Glib::DirIterator di = dir.begin(); di != dir.end(); di++) {
@ -137,10 +138,18 @@ run_functor_for_paths (vector<string>& result,
}
}
catch (Glib::FileError const& err) {
#ifndef NDEBUG
warning << string_compose (_("Cannot access file: %1"), err.what()) << endmsg;
#endif
}
catch (Glib::ConvertError const& err) {
#ifndef NDEBUG
warning << string_compose (_("Could not convert filename: %1"), err.what()) << endmsg;
#endif
} catch (...) {
#ifndef NDEBUG
warning << string_compose (_("Could not convert filename: '%1'"), *i) << endmsg;
#endif
}
}
}

View File

@ -656,6 +656,10 @@ cp $BUILD_ROOT/gtk2_ardour/ardour.menus $Etc
cp $BUILD_ROOT/gtk2_ardour/clearlooks.rc $Etc
cp $BUILD_ROOT/gtk2_ardour/default_ui_config $Etc
if test -n "$LIVETRAX"; then
cp $BUILD_ROOT/gtk2_ardour/livetrax.keys $Resources
fi
# Copied directly from source tree
mkdir ${Shared}/icons

View File

@ -515,6 +515,10 @@ cp $BUILD_ROOT/gtk2_ardour/ardour.menus $Resources
cp $BUILD_ROOT/gtk2_ardour/default_ui_config $Resources
cp $BUILD_ROOT/gtk2_ardour/clearlooks.rc $Resources
if test -n "$LIVETRAX"; then
cp $BUILD_ROOT/gtk2_ardour/livetrax.keys $Resources
fi
# Copied directly from source tree
mkdir ${Resources}/icons