no branch exist in the cloned directory; advice for changes before validation

This commit is contained in:
Marc Delisle
2010-03-16 08:10:49 -04:00
parent e338388cce
commit b7bbb967ba

View File

@@ -35,37 +35,6 @@ shift
branch=$1 branch=$1
shift shift
# Create working copy
mkdir -p release
workdir=release/phpMyAdmin-$version
if [ -d $workdir ] ; then
echo "Working directory '$workdir' already exists, please move it out of way"
exit 1
fi
git clone --local . $workdir
cd $workdir
# Checkout branch
git checkout $branch
# Check release version
if ! grep -q "'PMA_VERSION', '$version'" libraries/Config.class.php ; then
echo "There seems to be wrong version in libraries/Config.class.php!"
exit 2
fi
if ! grep -q "phpMyAdmin $version - Documentation" Documentation.html ; then
echo "There seems to be wrong version in Documentation.html"
exit 2
fi
if ! grep -q "phpMyAdmin $version - Official translators" translators.html ; then
echo "There seems to be wrong version in translators.html"
exit 2
fi
if ! grep -q "Version $version\$" README ; then
echo "There seems to be wrong version in README"
exit 2
fi
cat <<END cat <<END
Please ensure you have: Please ensure you have:
@@ -88,6 +57,36 @@ if [ "$do_release" != 'y' ]; then
exit 100 exit 100
fi fi
# Checkout branch
git checkout $branch
# Check release version
if ! grep -q "'PMA_VERSION', '$version'" libraries/Config.class.php ; then
echo "There seems to be wrong version in libraries/Config.class.php!"
exit 2
fi
if ! grep -q "phpMyAdmin $version - Documentation" Documentation.html ; then
echo "There seems to be wrong version in Documentation.html"
exit 2
fi
if ! grep -q "phpMyAdmin $version - Official translators" translators.html ; then
echo "There seems to be wrong version in translators.html"
exit 2
fi
if ! grep -q "Version $version\$" README ; then
echo "There seems to be wrong version in README"
exit 2
fi
# Create working copy
mkdir -p release
workdir=release/phpMyAdmin-$version
if [ -d $workdir ] ; then
echo "Working directory '$workdir' already exists, please move it out of way"
exit 1
fi
git clone --local . $workdir
cd $workdir
# Cleanup release dir # Cleanup release dir
LC_ALL=C date -u > RELEASE-DATE-${version} LC_ALL=C date -u > RELEASE-DATE-${version}
@@ -203,8 +202,8 @@ cat <<END
Todo now: Todo now:
--------- ---------
1. tag the repository with the new revision number for a plain release 1. If not already done, tag the repository with the new revision number
or a release candidate: for a plain release or a release candidate:
version 2.7.0 gets two tags: RELEASE_2_7_0 and STABLE version 2.7.0 gets two tags: RELEASE_2_7_0 and STABLE
version 2.7.1-rc1 gets RELEASE_2_7_1RC1 and TESTING version 2.7.1-rc1 gets RELEASE_2_7_1RC1 and TESTING