Skip to content
Browse files

Auto-update version string in README as well.

  • Loading branch information...
1 parent e05bdee commit 87de8f242d7803211f3f0508a6e58d55c4f6474e @twada committed Oct 10, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 pre_release.sh
View
5 pre_release.sh
@@ -10,6 +10,7 @@ fi
PACKAGE_JSON=$DIR/package.json
QUNIT_TAP_JS=$DIR/lib/qunit-tap.js
+README=$DIR/README.md
REL_VERSION=`echo $PRE_VERSION | sed -e 's/pre//g'`
cp ${PACKAGE_JSON} ${PACKAGE_JSON}.orig
@@ -19,3 +20,7 @@ rm ${PACKAGE_JSON}.orig
cp ${QUNIT_TAP_JS} ${QUNIT_TAP_JS}.orig
cat ${QUNIT_TAP_JS}.orig | sed -e "s/$PRE_VERSION/$REL_VERSION/g" > ${QUNIT_TAP_JS}
rm ${QUNIT_TAP_JS}.orig
+
+cp ${README} ${README}.orig
+cat ${README}.orig | sed -e "s/\"qunit-tap\": \"\([^\"]*\)\",/\"qunit-tap\": \"${REL_VERSION}\",/g" > ${README}
+rm ${README}.orig

0 comments on commit 87de8f2

Please sign in to comment.
Something went wrong with that request. Please try again.