summaryrefslogtreecommitdiff
path: root/tools/windows_packaging/cptovmshare.sh
blob: f447f57b5c7ac8d42210d945bd15ca5f7f71fbd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

. ./mingw-env.sh

cd $BASE || exit 1

if [ -z $ARDOUR_VM_SHARE_DIR ]
then
	echo "You must set ARDOUR_VM_SHARE_DIR in your environment to use this script!"
	exit 1
fi

if [ -d $ARDOUR_VM_SHARE_DIR/$PACKAGE_DIR ]; then
	echo "Removing $PACKAGE_DIR from vm share directory ..."
	rm -rf $ARDOUR_VM_SHARE_DIR/$PACKAGE_DIR || exit 1
fi

echo "Copying $PACKAGE_DIR to vm share directory $ARDOUR_VM_SHARE_DIR ..."
cp -r $PACKAGE_DIR $ARDOUR_VM_SHARE_DIR || exit 1