You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2014/03/06 15:25:58 UTC

svn commit: r1574891 - in /isis/site/trunk/content/contributors: release-process-one-pager.md resources/release.sh

Author: danhaywood
Date: Thu Mar  6 14:25:58 2014
New Revision: 1574891

URL: http://svn.apache.org/r1574891
Log:
updating release process

Modified:
    isis/site/trunk/content/contributors/release-process-one-pager.md
    isis/site/trunk/content/contributors/resources/release.sh

Modified: isis/site/trunk/content/contributors/release-process-one-pager.md
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/contributors/release-process-one-pager.md?rev=1574891&r1=1574890&r2=1574891&view=diff
==============================================================================
--- isis/site/trunk/content/contributors/release-process-one-pager.md (original)
+++ isis/site/trunk/content/contributors/release-process-one-pager.md Thu Mar  6 14:25:58 2014
@@ -35,11 +35,11 @@ if releasing a `component/xxx/yyy`, eg:
     export ISISREL=1.4.0
     export ISISRC=RC1
 
-then export derived props for component type and component name
+then export derived props for component type (ISISCPT) and component name (ISISCPN) and whether core or not (ISISCOR):
 
-    export ISISCTP=$(echo $ISISART | cut -d- -f2)
-    export ISISCNM=$(echo $ISISART | cut -d- -f3)
-    if [ $(echo "abc-def" | grep -v "-") ]; then export ISISCOR="Y"; else export ISISCOR="N"; fi
+    export ISISCPT=$(echo $ISISART | cut -d- -f2)
+    export ISISCPN=$(echo $ISISART | cut -d- -f3)
+    if [ $(echo "$ISISART" | grep -v "-") ]; then export ISISCOR="Y"; else export ISISCOR="N"; fi
 
 confirm:
 
@@ -119,7 +119,13 @@ then "for real": 
     rm -rf $ISISTMP/$ISISART-$ISISREL
     mkdir $ISISTMP/$ISISART-$ISISREL
 
-    cp target/$ISISART-$ISISREL-source-release.zip $ISISTMP/$ISISART-$ISISREL/.
+    if [ "$ISISCOR" == "Y" ]; then
+        ZIPDIR="$M2_REPO/repository/org/apache/isis/core/"
+    else
+        ZIPDIR="$M2_REPO/repository/org/apache/isis/$ISISCPT/$ISISCPN/"
+    fi
+    cp "$ZIPDIR/$ISISART-$ISISREL-source-release.zip" $ISISTMP/$ISISART-$ISISREL/.
+
     pushd $ISISTMP/$ISISART-$ISISREL
     unzip $ISISART-$ISISREL-source-release.zip
 
@@ -154,3 +160,4 @@ Push branch then tags:
     git push -u origin prepare/$ISISART-$ISISREL-$ISISRC
     git push origin refs/tags/$ISISART-$ISISREL:refs/tags/$ISISART-$ISISREL-$ISISRC
     git fetch
+

Modified: isis/site/trunk/content/contributors/resources/release.sh
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/contributors/resources/release.sh?rev=1574891&r1=1574890&r2=1574891&view=diff
==============================================================================
--- isis/site/trunk/content/contributors/resources/release.sh (original)
+++ isis/site/trunk/content/contributors/resources/release.sh Thu Mar  6 14:25:58 2014
@@ -28,9 +28,9 @@ if [ -z $ISISDEV ]; then exit; fi
 if [ -z $ISISRC ]; then exit; fi
 
 # derived
-export ISISCTP=$(echo $ISISART | cut -d- -f2)
-export ISISCNM=$(echo $ISISART | cut -d- -f3)
-if [ $(echo "abc-def" | grep -v "-") ]; then export ISISCOR="Y"; else export ISISCOR="N"; fi
+export ISISCPT=$(echo $ISISART | cut -d- -f2)
+export ISISCPN=$(echo $ISISART | cut -d- -f3)
+if [ $(echo "$ISISART" | grep -v "-") ]; then export ISISCOR="Y"; else export ISISCOR="N"; fi
 
 clear
 
@@ -86,7 +86,13 @@ echo "" 
 rm -rf $ISISTMP/$ISISART-$ISISREL
 mkdir $ISISTMP/$ISISART-$ISISREL
 
-cp target/$ISISART-$ISISREL-source-release.zip $ISISTMP/$ISISART-$ISISREL/.
+if [ "$ISISCOR" == "Y" ]; then
+    ZIPDIR="$M2_REPO/repository/org/apache/isis/core/"
+else
+    ZIPDIR="$M2_REPO/repository/org/apache/isis/$ISISCPT/$ISISCPN/"
+fi
+cp "$ZIPDIR/$ISISART-$ISISREL-source-release.zip" $ISISTMP/$ISISART-$ISISREL/.
+
 pushd $ISISTMP/$ISISART-$ISISREL
 unzip $ISISART-$ISISREL-source-release.zip