diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2015-11-05 14:06:03 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2015-12-01 15:44:10 +1000 |
commit | 44f46d2b0dd0ef0265b823d0126857ec4458345b (patch) | |
tree | a53c2e407b3db86d88975df39777826965229bfb /libs/ardour/load-save-session-collection.sh | |
parent | 7f3118c8fe651c722b48ed3d9f47f998507237be (diff) |
Fix broken load-session utility and change it to load and save a session
Rename run-session-tests.sh script to load-save-session.sh and make it operate on
only a single session and add a separate load-save-session-collection.sh script
Add --massif option to load-save-session.sh script
Rename some poorly named variables and add some documentation to the
load-save-session.sh script
Diffstat (limited to 'libs/ardour/load-save-session-collection.sh')
-rwxr-xr-x | libs/ardour/load-save-session-collection.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libs/ardour/load-save-session-collection.sh b/libs/ardour/load-save-session-collection.sh new file mode 100755 index 0000000000..ee2957f65f --- /dev/null +++ b/libs/ardour/load-save-session-collection.sh @@ -0,0 +1,18 @@ +#!/bin/bash +# +# This script will run the load-save-session.sh script over each session in a +# directory containing session directories. +# +# This script only supports the default option of the load-save-session.sh +# script, so no valgind or gdb options as it isn't useful on more than a single +# session at a time, use load-save-session.sh directly for that. + +DIR_PATH=$1 +if [ "$DIR_PATH" == "" ]; then + echo "Syntax: load-save-session-collection.sh <session collection dir>" + exit 1 +fi + +for SESSION_DIR in `find $DIR_PATH -mindepth 1 -maxdepth 1 -type d`; do + ./load-save-session.sh $SESSION_DIR +done |