incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1300528 - in /incubator/lcf/release-scripts: release-meridio.bat release-sharepoint-3.0.bat release-solr-3.x.bat release-solr-4.x.bat release.bat
Date Wed, 14 Mar 2012 12:45:47 GMT
Author: kwright
Date: Wed Mar 14 12:45:47 2012
New Revision: 1300528

URL: http://svn.apache.org/viewvc?rev=1300528&view=rev
Log:
Update scripts to check for arguments and parameterize the Apache username.

Modified:
    incubator/lcf/release-scripts/release-meridio.bat
    incubator/lcf/release-scripts/release-sharepoint-3.0.bat
    incubator/lcf/release-scripts/release-solr-3.x.bat
    incubator/lcf/release-scripts/release-solr-4.x.bat
    incubator/lcf/release-scripts/release.bat

Modified: incubator/lcf/release-scripts/release-meridio.bat
URL: http://svn.apache.org/viewvc/incubator/lcf/release-scripts/release-meridio.bat?rev=1300528&r1=1300527&r2=1300528&view=diff
==============================================================================
--- incubator/lcf/release-scripts/release-meridio.bat (original)
+++ incubator/lcf/release-scripts/release-meridio.bat Wed Mar 14 12:45:47 2012
@@ -1,3 +1,23 @@
+@echo off
+if "%1" == "" goto missingrelease
+if "%2" == "" goto missinguser
+goto proceed
+
+:missingrelease
+echo "Need a release version, e.g. '0.1-incubating'"
+goto usage
+
+:missinguser
+echo "Need an Apache user account name, e.g. 'kwright'
+goto usage
+
+:usage
+echo "Usage: release <release_name> <apache_user_name>"
+goto end
+
+:proceed
+@echo on
+
 erase apache-manifoldcf-*
 cmd.exe /c ant image
 
@@ -23,6 +43,7 @@ echo %b1%%b2%%b3%%b4%%b5%%b6%%b7%%b8%%b9
 erase *.md5temp
 copy KEYS apache-manifoldcf-meridio-plugin-%1.KEYS
 copy CHANGES.txt apache-manifoldcf-meridio-plugin-%1.CHANGES.txt
-pscp apache-manifoldcf-meridio-plugin-%1* kwright@people.apache.org:public_html/apache-manifoldcf-meridio-plugin-%1
+pscp apache-manifoldcf-meridio-plugin-%1* %2@people.apache.org:public_html/apache-manifoldcf-meridio-plugin-%1
 
+:end
 

Modified: incubator/lcf/release-scripts/release-sharepoint-3.0.bat
URL: http://svn.apache.org/viewvc/incubator/lcf/release-scripts/release-sharepoint-3.0.bat?rev=1300528&r1=1300527&r2=1300528&view=diff
==============================================================================
--- incubator/lcf/release-scripts/release-sharepoint-3.0.bat (original)
+++ incubator/lcf/release-scripts/release-sharepoint-3.0.bat Wed Mar 14 12:45:47 2012
@@ -1,3 +1,23 @@
+@echo off
+if "%1" == "" goto missingrelease
+if "%2" == "" goto missinguser
+goto proceed
+
+:missingrelease
+echo "Need a release version, e.g. '0.1-incubating'"
+goto usage
+
+:missinguser
+echo "Need an Apache user account name, e.g. 'kwright'
+goto usage
+
+:usage
+echo "Usage: release <release_name> <apache_user_name>"
+goto end
+
+:proceed
+@echo on
+
 erase apache-manifoldcf-*
 cmd.exe /c ant image
 
@@ -39,6 +59,7 @@ echo %b1%%b2%%b3%%b4%%b5%%b6%%b7%%b8%%b9
 erase *.md5temp
 copy KEYS apache-manifoldcf-sharepoint-3.0-plugin-%1.KEYS
 copy CHANGES.txt apache-manifoldcf-sharepoint-3.0-plugin-%1.CHANGES.txt
-pscp apache-manifoldcf-sharepoint-3.0-plugin-%1* kwright@people.apache.org:public_html/apache-manifoldcf-sharepoint-3.0-plugin-%1
+pscp apache-manifoldcf-sharepoint-3.0-plugin-%1* %2@people.apache.org:public_html/apache-manifoldcf-sharepoint-3.0-plugin-%1
 
+:end
 

Modified: incubator/lcf/release-scripts/release-solr-3.x.bat
URL: http://svn.apache.org/viewvc/incubator/lcf/release-scripts/release-solr-3.x.bat?rev=1300528&r1=1300527&r2=1300528&view=diff
==============================================================================
--- incubator/lcf/release-scripts/release-solr-3.x.bat (original)
+++ incubator/lcf/release-scripts/release-solr-3.x.bat Wed Mar 14 12:45:47 2012
@@ -1,3 +1,23 @@
+@echo off
+if "%1" == "" goto missingrelease
+if "%2" == "" goto missinguser
+goto proceed
+
+:missingrelease
+echo "Need a release version, e.g. '0.1-incubating'"
+goto usage
+
+:missinguser
+echo "Need an Apache user account name, e.g. 'kwright'
+goto usage
+
+:usage
+echo "Usage: release <release_name> <apache_user_name>"
+goto end
+
+:proceed
+@echo on
+
 erase apache-manifoldcf-*
 cmd.exe /c ant image
 
@@ -39,6 +59,6 @@ echo %b1%%b2%%b3%%b4%%b5%%b6%%b7%%b8%%b9
 erase *.md5temp
 copy KEYS apache-manifoldcf-solr-3.x-plugin-%1.KEYS
 copy CHANGES.txt apache-manifoldcf-solr-3.x-plugin-%1.CHANGES.txt
-pscp apache-manifoldcf-solr-3.x-plugin-%1* kwright@people.apache.org:public_html/apache-manifoldcf-solr-3.x-plugin-%1
-
+pscp apache-manifoldcf-solr-3.x-plugin-%1* %2@people.apache.org:public_html/apache-manifoldcf-solr-3.x-plugin-%1
 
+:end

Modified: incubator/lcf/release-scripts/release-solr-4.x.bat
URL: http://svn.apache.org/viewvc/incubator/lcf/release-scripts/release-solr-4.x.bat?rev=1300528&r1=1300527&r2=1300528&view=diff
==============================================================================
--- incubator/lcf/release-scripts/release-solr-4.x.bat (original)
+++ incubator/lcf/release-scripts/release-solr-4.x.bat Wed Mar 14 12:45:47 2012
@@ -1,3 +1,23 @@
+@echo off
+if "%1" == "" goto missingrelease
+if "%2" == "" goto missinguser
+goto proceed
+
+:missingrelease
+echo "Need a release version, e.g. '0.1-incubating'"
+goto usage
+
+:missinguser
+echo "Need an Apache user account name, e.g. 'kwright'
+goto usage
+
+:usage
+echo "Usage: release <release_name> <apache_user_name>"
+goto end
+
+:proceed
+@echo on
+
 erase apache-manifoldcf-*
 cmd.exe /c ant image
 
@@ -39,6 +59,7 @@ echo %b1%%b2%%b3%%b4%%b5%%b6%%b7%%b8%%b9
 erase *.md5temp
 copy KEYS apache-manifoldcf-solr-4.x-plugin-%1.KEYS
 copy CHANGES.txt apache-manifoldcf-solr-4.x-plugin-%1.CHANGES.txt
-pscp apache-manifoldcf-solr-4.x-plugin-%1* kwright@people.apache.org:public_html/apache-manifoldcf-solr-4.x-plugin-%1
+pscp apache-manifoldcf-solr-4.x-plugin-%1* %2@people.apache.org:public_html/apache-manifoldcf-solr-4.x-plugin-%1
 
+:end
 

Modified: incubator/lcf/release-scripts/release.bat
URL: http://svn.apache.org/viewvc/incubator/lcf/release-scripts/release.bat?rev=1300528&r1=1300527&r2=1300528&view=diff
==============================================================================
--- incubator/lcf/release-scripts/release.bat (original)
+++ incubator/lcf/release-scripts/release.bat Wed Mar 14 12:45:47 2012
@@ -1,3 +1,23 @@
+@echo off
+if "%1" == "" goto missingrelease
+if "%2" == "" goto missinguser
+goto proceed
+
+:missingrelease
+echo "Need a release version, e.g. '0.1-incubating'"
+goto usage
+
+:missinguser
+echo "Need an Apache user account name, e.g. 'kwright'
+goto usage
+
+:usage
+echo "Usage: release <release_name> <apache_user_name>"
+goto end
+
+:proceed
+@echo on
+
 cmd.exe /c ant clean
 erase apache-manifoldcf-*
 cmd.exe /c ant image
@@ -57,6 +77,7 @@ erase *.md5temp
 erase *.sha1temp
 copy KEYS apache-manifoldcf-%1.KEYS
 copy CHANGES.txt apache-manifoldcf-%1.CHANGES.txt
-pscp apache-manifoldcf-%1* kwright@people.apache.org:public_html/apache-manifoldcf-%1
+pscp apache-manifoldcf-%1* %2@people.apache.org:public_html/apache-manifoldcf-%1
 
+:end
 



Mime
View raw message