cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cordova-coho git commit: Updated sed command to only change first occurrence of version in package.json
Date Thu, 16 Apr 2015 00:05:05 GMT
Repository: cordova-coho
Updated Branches:
  refs/heads/master a8229ec88 -> 607322c7b


Updated sed command to only change first occurrence of version in package.json

This will prevent it from changing the version on any existing engine tags in package.json

Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/607322c7
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/607322c7
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/607322c7

Branch: refs/heads/master
Commit: 607322c7bea3a1e94c15808753d36cff5b9aa549
Parents: a8229ec
Author: Steve Gill <steveng@adobe.com>
Authored: Wed Apr 15 15:39:13 2015 -0700
Committer: Steve Gill <steveng@adobe.com>
Committed: Wed Apr 15 15:39:13 2015 -0700

----------------------------------------------------------------------
 docs/plugins-release-process.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/607322c7/docs/plugins-release-process.md
----------------------------------------------------------------------
diff --git a/docs/plugins-release-process.md b/docs/plugins-release-process.md
index 90b35b4..1315dbe 100644
--- a/docs/plugins-release-process.md
+++ b/docs/plugins-release-process.md
@@ -89,7 +89,7 @@ Remove the ''-dev'' suffix on the version in plugin.xml.
 
 Remove the ''-dev'' suffix on the version in package.json.
 
-    for l in $ACTIVE; do ( cd $l; v="$(grep -m 1 '"version"' package.json | cut -d'"' -f4)";
if [[ $v = *-dev ]]; then v2="${v%-dev}"; echo "$l: Setting version in package.json to $v2";
sed -i '' -E 's/version":.*/version": "'$v2'",/' package.json; fi) ; done
+    for l in $ACTIVE; do ( cd $l; v="$(grep -m 1 '"version"' package.json | cut -d'"' -f4)";
if [[ $v = *-dev ]]; then v2="${v%-dev}"; echo "$l: Setting version in package.json to $v2";
sed -i '' -E '1,/version":.*/s/version":.*/version": "'$v2'",/' package.json; fi) ; done
 
 If the changes merit it, manually bump the major / minor version instead of the micro. Manual
process, but list the changes via:
 
@@ -129,7 +129,7 @@ Reply to the DISCUSS thread with a link to the updated release notes.
 
     for l in $ACTIVE; do ( cd $l; v="$(grep version= plugin.xml | grep -v xml | head -n1
| cut -d'"' -f2)"; v_no_dev="${v%-dev}"; if [ "$v" = "$v_no_dev" ]; then v2="$(echo $v|awk
-F"." '{$NF+=1}{print $0RT}' OFS="." ORS="")-dev"; echo "$l: Setting version in plugin.xml
to $v2"; sed -i '' -E s:"version=\"$v\":version=\"$v2\":" plugin.xml; fi) ; done
     # update package.json
-    for l in $ACTIVE; do ( cd $l; v="$(grep -m 1 '"version"' package.json | cut -d'"' -f4)";
if [[ $v != *-dev ]]; then v2="$(echo $v|awk -F"." '{$NF+=1}{print $0RT}' OFS="." ORS="")-dev";
echo "$l: Setting version in package.json to $v2"; sed -i '' -E 's/version":.*/version": "'$v2'",/'
package.json; fi); done
+    for l in $ACTIVE; do ( cd $l; v="$(grep -m 1 '"version"' package.json | cut -d'"' -f4)";
if [[ $v != *-dev ]]; then v2="$(echo $v|awk -F"." '{$NF+=1}{print $0RT}' OFS="." ORS="")-dev";
echo "$l: Setting version in package.json to $v2"; sed -i '' -E '1,/version":.*/s/version":.*/version":
"'$v2'",/' package.json; fi); done
     # update the nested test
     for l in $ACTIVE; do ( cd $l; v="$(grep version= plugin.xml | grep -v xml | head -n1
| cut -d'"' -f2)"; vt="$(grep version= tests/plugin.xml | grep -v xml | head -n1 | cut -d'"'
-f2)"; if [ "$v" != "$vt" ]; then echo "$l: Setting version to $v"; sed -i '' -E s:"version=\"$vt\":version=\"$v\":"
tests/plugin.xml; fi); done
     for l in $ACTIVE; do (cd $l; git commit -am "$JIRA Incremented plugin version." ); done


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message