summaryrefslogtreecommitdiff
path: root/libs/ardour/load-save-session-collection.sh
blob: ee2957f65fde0744c8b6520c162a89f15c12bfb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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