#!/bin/bash

if [ -n "$1" ]
then
  echo "Creating Opus distribution for version $1"
else
  echo "Please supply a version number"
  exit 1
fi

directory=opus-$1

svn export http://opus.googlecode.com/svn/trunk $directory
tar -czf opus-$1-source.tgz $directory

find $directory -name "AssemblyInfo.cs" | xargs sed 's/AssemblyInformationalVersion("[0-9.]*")/AssemblyInformationalVersion("'$1'")/g' -i

pushd $directory
mdtool build --target:Build --configuration:Release Opus.sln
popd

tar -czf opus-$1-binary.tgz $directory/bin $directory/Changelog.txt $directory/env.bat $directory/env.sh $directory/License.txt $directory/packages $directory/testpackages
rm -fr $directory


#!/bin/bash

if [ -n "$1" ]
then
  echo "Creating Opus distribution for version $1"
else
  echo "Please supply a version number"
  exit 1
fi

directory=opus-$1

svn export http://opus.googlecode.com/svn/trunk $directory

find $directory -name "AssemblyInfo.cs" | xargs sed 's/AssemblyInformationalVersion("[0-9.]*")/AssemblyInformationalVersion("'$1'")/g' -i

tar -czf opus-$1-source.tgz $directory

pushd $directory
mdtool build --target:Build --configuration:Release Opus.sln
popd

tar -czf opus-$1-binary.tgz $directory/bin $directory/Changelog.txt $directory/env.bat $directory/env.sh $directory/License.txt $directory/packages $directory/testpackages
rm -fr $directory


Modify the assembly informational version before taring up the source
[trunk] Modify the assembly informational version before taring up the source
