[Ardour-users] Ardour Session Converter

From: John Mifsud ^lt;johnmifs_at_au1.ibm.com>
Date: 01/20/04 23:07 EST
Message-ID: <OFF89A486B.3305A620-ONCA256E22.00157FFF@au1.ibm.com>




Thanks for your response Joe but I was unable to retreive the attachment
from my user digest or from the list archives, but I was able to work out
what was going on in the session file.

I'm posting the script here just in case someone needs it and ends up in
the same predicament I was in.

---------------------------->cut here<-------------------------------
Session=$1

NewSession=$( echo $Session | sed 's/\.ardour//' )
echo "converting $Session to $NewSession"
mv $Session $NewSession
cd $NewSession

header=$(cat default.xml | grep xml )
version=$(cat default.xml | grep "<Session" | sed 's/<Session//')

( echo $header ; echo "<Session name=\""$Session"\" "$version ; cat
default.xml | grep -v "<?xml.*$" | grep -v "<Session.*$" | grep -v
"<Path.*$" )\
> $Session

cp $Session $Session.bak
cd ..
---------------------------->the end<---------------------------------



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Ardour-users mailing list
Ardour-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ardour-users
Received on Tue Jan 20 23:10:58 2004

This archive was generated by hypermail 2.1.8 : 01/20/04 23:10 EST