fate: store last version in per-slot file

This allows the same workdir to be used by multiple slots.

Originally committed as revision 24819 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Måns Rullgård 2010-08-17 20:36:22 +00:00
parent dd872bf49f
commit 32a15a2441
1 changed files with 2 additions and 2 deletions

View File

@ -101,8 +101,8 @@ test -d "$src" && update || checkout || die "Error fetching source"
cd ${workdir}
version=$(${src}/version.sh ${src})
test "$version" = "$(cat version 2>/dev/null)" && exit 0
echo ${version} >version
test "$version" = "$(cat version-$slot 2>/dev/null)" && exit 0
echo ${version} >version-$slot
rm -rf "${build}"
mkdir -p ${build}