mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 23:46:20 +01:00
Remove two scripts no longer used
These scripts are too specific to my virtual machine setup, a more generic method can now be used by setting ARDOUR_VM_SHARE_DIR and using the cptovmshare.sh script.
This commit is contained in:
parent
f25c7081c9
commit
3512a9fe40
3 changed files with 0 additions and 69 deletions
|
|
@ -1,62 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. ./mingw-env.sh
|
||||
|
||||
TMP_DIR=tmp
|
||||
LOOP_DEV=/dev/loop4
|
||||
|
||||
cd $BASE || exit 1
|
||||
|
||||
if [ ! -d $TMP_DIR ]; then
|
||||
echo "Creating temp directory to mount vm image ..."
|
||||
mkdir $TMP_DIR || exit 1
|
||||
fi
|
||||
|
||||
echo "mounting vm image as loopback device ..."
|
||||
|
||||
sudo mount -o loop=$LOOP_DEV,offset=32256 $VIRT_IMAGE_PATH $TMP_DIR || exit 1
|
||||
|
||||
if [ -d $TMP_DIR/$PACKAGE_DIR ]; then
|
||||
echo "Removing old copy of $PACKAGE_DIR from vm image ..."
|
||||
rm -rf $TMP_DIR/$PACKAGE_DIR || exit 1
|
||||
fi
|
||||
|
||||
echo "Copying $PACKAGE_DIR to vm image ..."
|
||||
cp -r $PACKAGE_DIR $TMP_DIR || exit 1
|
||||
|
||||
if [ "$1" == "--data" ]; then
|
||||
DATA_DIR=data
|
||||
|
||||
if [ -d $TMP_DIR/$DATA_DIR ]; then
|
||||
echo "Removing old copy of $DATA_DIR from vm image ..."
|
||||
rm -rf $TMP_DIR/$DATA_DIR || exit 1
|
||||
fi
|
||||
|
||||
echo "Copying $DATA_DIR to vm image ..."
|
||||
cp -r $DATA_DIR $TMP_DIR || exit 1
|
||||
fi
|
||||
|
||||
|
||||
# in case mount is busy
|
||||
sleep 2
|
||||
|
||||
echo "Unmounting vm image ..."
|
||||
|
||||
sudo umount -d tmp
|
||||
|
||||
echo "Removing temp directory used to mount vm image ..."
|
||||
rm -rf $TMP_DIR || exit 1
|
||||
|
||||
if sudo losetup $LOOP_DEV; then
|
||||
echo "sleeping for 10 seconds and trying again ..."
|
||||
sleep 10
|
||||
if sudo losetup -d $LOOP_DEV; then
|
||||
echo "Unmounted loopback device successfully"
|
||||
exit 0
|
||||
else:
|
||||
echo "Unmounting loopback device unsuccessful, you will need to use losetup -d to unmount device"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
|
@ -47,6 +47,3 @@ then
|
|||
|
||||
ARDOUR_DATA_DIR=$PACKAGE_DIR/share/ardour3
|
||||
fi
|
||||
|
||||
# put this somewhere better...
|
||||
VIRT_IMAGE_PATH=$HOME/Data/virt-images/winxp.raw
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
. mingw-env.sh
|
||||
|
||||
qemu-kvm -smp 2 -m 1536 -hda $VIRT_IMAGE_PATH -net nic -net user -vga std -soundhw all
|
||||
Loading…
Add table
Add a link
Reference in a new issue