mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-20 20:44:21 +00:00
Build: Update prepare-release for use with grunt.
This commit is contained in:
parent
5ec0dd8abe
commit
eaacf82526
@ -45,7 +45,7 @@ echo "------------------------"
|
|||||||
echo
|
echo
|
||||||
|
|
||||||
# NOTE: this will be different for minor and major releases
|
# NOTE: this will be different for minor and major releases
|
||||||
version_new=`cat version.txt`
|
version_new=`node -e "console.log(require(\"${repo_dir}/package\").version)"`
|
||||||
version_new=${version_new:0:$((${#version_new} - 3))}
|
version_new=${version_new:0:$((${#version_new} - 3))}
|
||||||
major_minor=${version_new%.*}
|
major_minor=${version_new%.*}
|
||||||
point=${version_new##*.}
|
point=${version_new##*.}
|
||||||
@ -154,21 +154,23 @@ echo "| UPDATING VERSION |"
|
|||||||
echo "--------------------"
|
echo "--------------------"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
echo "Updating version.txt to $version_new..."
|
echo "Updating package.json to $version_new..."
|
||||||
echo $version_new > version.txt
|
sed "s/\(version\": \"\)\([^\"]*\)/\1${version_new}/" < package.json > _package.json
|
||||||
|
mv _package.json package.json
|
||||||
|
|
||||||
git commit -a -m "Tagging the $version_new release."
|
git commit -a -m "Tagging the $version_new release."
|
||||||
version_new_time=`git log -1 --pretty=format:"%ad"`
|
version_new_time=`git log -1 --pretty=format:"%ad"`
|
||||||
echo "Committed version.txt at $version_new_time..."
|
echo "Committed package.json at $version_new_time..."
|
||||||
|
|
||||||
echo "Tagging $version_new..."
|
echo "Tagging $version_new..."
|
||||||
git tag $version_new
|
git tag $version_new
|
||||||
|
|
||||||
echo "Updating version.txt to $version_next..."
|
echo "Updating package.json to $version_next..."
|
||||||
echo $version_next > version.txt
|
sed "s/\(version\": \"\)\([^\"]*\)/\1${version_next}/" < package.json > _package.json
|
||||||
|
mv _package.json package.json
|
||||||
|
|
||||||
git commit -a -m "Updating the $git_branch version to $version_next"
|
git commit -a -m "Updating the $git_branch version to $version_next"
|
||||||
echo "Committed version.txt..."
|
echo "Committed package.json..."
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Version update complete."
|
echo "Version update complete."
|
||||||
@ -239,16 +241,14 @@ echo
|
|||||||
# check out the tagged version
|
# check out the tagged version
|
||||||
echo "Checking out $version_new..."
|
echo "Checking out $version_new..."
|
||||||
git checkout $version_new
|
git checkout $version_new
|
||||||
cd build
|
|
||||||
|
|
||||||
# Update the link to the docs (never contains the patch version)
|
# install dependencies
|
||||||
echo "Updating URL for API docs..."
|
echo "Installing dependencies..."
|
||||||
sed "s/UI\/API\/\${release\.version}/UI\/API\/$major_minor/" build.xml >build.xml.tmp
|
npm install
|
||||||
mv build.xml.tmp build.xml
|
|
||||||
|
|
||||||
# Run the build
|
# Run the build
|
||||||
echo "Running build..."
|
echo "Running build..."
|
||||||
ant
|
grunt release
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Build complete."
|
echo "Build complete."
|
||||||
@ -300,7 +300,7 @@ svn co --depth immediates https://jquery-ui.googlecode.com/svn/tags
|
|||||||
cd tags
|
cd tags
|
||||||
|
|
||||||
echo "Unzipping build into tags/$version_new..."
|
echo "Unzipping build into tags/$version_new..."
|
||||||
unzip $repo_dir/build/dist/jquery-ui-$version_new.zip
|
unzip $repo_dir/dist/jquery-ui-$version_new.zip
|
||||||
mv jquery-ui-$version_new $version_new
|
mv jquery-ui-$version_new $version_new
|
||||||
|
|
||||||
echo "Adding files to SVN..."
|
echo "Adding files to SVN..."
|
||||||
|
Loading…
Reference in New Issue
Block a user