manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1461460 - /manifoldcf/release-scripts/release-elasticsearch.bat
Date Wed, 27 Mar 2013 09:10:11 GMT
Author: kwright
Date: Wed Mar 27 09:10:10 2013
New Revision: 1461460

URL: http://svn.apache.org/r1461460
Log:
First go at an elasticsearch release script.

Added:
    manifoldcf/release-scripts/release-elasticsearch.bat   (with props)

Added: manifoldcf/release-scripts/release-elasticsearch.bat
URL: http://svn.apache.org/viewvc/manifoldcf/release-scripts/release-elasticsearch.bat?rev=1461460&view=auto
==============================================================================
--- manifoldcf/release-scripts/release-elasticsearch.bat (added)
+++ manifoldcf/release-scripts/release-elasticsearch.bat Wed Mar 27 09:10:10 2013
@@ -0,0 +1,88 @@
+@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 mvn clean
+cmd.exe /c mvn package assembly:assembly
+
+copy target\elasticsearch-plugin-mcf-%1-bin.tar.gz apache-manifoldcf-elasticsearch-plugin-%1-bin.tar.gz
+copy target\elasticsearch-plugin-mcf-%1-bin.zip apache-manifoldcf-elasticsearch-plugin-%1-bin.zip
+copy target\elasticsearch-plugin-mcf-%1-src.tar.gz apache-manifoldcf-elasticsearch-plugin-%1-src.tar.gz
+copy target\elasticsearch-plugin-mcf-%1-src.zip apache-manifoldcf-elasticsearch-plugin-%1-src.zip
+
+gpg --armor --output apache-manifoldcf-elasticsearch-plugin-%1-src.zip.asc --detach-sig apache-manifoldcf-elasticsearch-plugin-%1-src.zip
+gpg --armor --output apache-manifoldcf-elasticsearch-plugin-%1-src.tar.gz.asc --detach-sig
apache-manifoldcf-elasticsearch-plugin-%1-src.tar.gz
+gpg --armor --output apache-manifoldcf-elasticsearch-plugin-%1-bin.zip.asc --detach-sig apache-manifoldcf-elasticsearch-plugin-%1-bin.zip
+gpg --armor --output apache-manifoldcf-elasticsearch-plugin-%1-bin.tar.gz.asc --detach-sig
apache-manifoldcf-elasticsearch-plugin-%1-bin.tar.gz
+
+rem gpg is pretty broken when it comes to md5 output...
+
+ren apache-manifoldcf-elasticsearch-plugin-%1-src.zip tiny
+gpg --print-md MD5 tiny >apache-manifoldcf-elasticsearch-plugin-src.zip.md5temp
+gpg --print-md SHA1 tiny >apache-manifoldcf-elasticsearch-plugin-src.zip.sha1temp
+ren tiny apache-manifoldcf-elasticsearch-plugin-%1-src.zip
+ren apache-manifoldcf-elasticsearch-plugin-%1-src.tar.gz tiny
+gpg --print-md MD5 tiny >apache-manifoldcf-elasticsearch-plugin-src.tar.gz.md5temp
+gpg --print-md SHA1 tiny >apache-manifoldcf-elasticsearch-plugin-src.tar.gz.sha1temp
+ren tiny apache-manifoldcf-elasticsearch-plugin-%1-src.tar.gz
+
+set /p md5= < apache-manifoldcf-elasticsearch-plugin-src.zip.md5temp
+for /f "tokens=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17 delims=: " %%a in ("%md5%") do set
file=%%a&set b1=%%b&set b2=%%c&set b3=%%d&set b4=%%e&set b5=%%f&set
b6=%%g&set b7=%%h&set b8=%%i&set b9=%%j&set b10=%%k&set b11=%%l&set
b12=%%m&set b13=%%n&set b14=%%o&set b15=%%p&set b16=%%q
+echo %b1%%b2%%b3%%b4%%b5%%b6%%b7%%b8%%b9%%b10%%b11%%b12%%b13%%b14%%b15%%b16% *apache-manifoldcf-elasticsearch-plugin-%1-src.zip
>apache-manifoldcf-elasticsearch-plugin-%1-src.zip.md5
+set /p sha1= < apache-manifoldcf-elasticsearch-plugin-src.zip.sha1temp
+for /f "tokens=1,2,3,4,5,6,7,8,9,10,11 delims=: " %%a in ("%sha1%") do set file=%%a&set
b1=%%b&set b2=%%c&set b3=%%d&set b4=%%e&set b5=%%f&set b6=%%g&set
b7=%%h&set b8=%%i&set b9=%%j&set b10=%%k
+echo %b1%%b2%%b3%%b4%%b5%%b6%%b7%%b8%%b9%%b10% *apache-manifoldcf-elasticsearch-plugin-%1-src.zip
>apache-manifoldcf-elasticsearch-plugin-%1-src.zip.sha1
+set /p md5= < apache-manifoldcf-elasticsearch-plugin-src.tar.gz.md5temp
+for /f "tokens=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17 delims=: " %%a in ("%md5%") do set
file=%%a&set b1=%%b&set b2=%%c&set b3=%%d&set b4=%%e&set b5=%%f&set
b6=%%g&set b7=%%h&set b8=%%i&set b9=%%j&set b10=%%k&set b11=%%l&set
b12=%%m&set b13=%%n&set b14=%%o&set b15=%%p&set b16=%%q
+echo %b1%%b2%%b3%%b4%%b5%%b6%%b7%%b8%%b9%%b10%%b11%%b12%%b13%%b14%%b15%%b16% *apache-manifoldcf-elasticsearch-plugin-%1-src.tar.gz
>apache-manifoldcf-elasticsearch-plugin-%1-src.tar.gz.md5
+set /p sha1= < apache-manifoldcf-elasticsearch-plugin-src.tar.gz.sha1temp
+for /f "tokens=1,2,3,4,5,6,7,8,9,10,11 delims=: " %%a in ("%sha1%") do set file=%%a&set
b1=%%b&set b2=%%c&set b3=%%d&set b4=%%e&set b5=%%f&set b6=%%g&set
b7=%%h&set b8=%%i&set b9=%%j&set b10=%%k
+echo %b1%%b2%%b3%%b4%%b5%%b6%%b7%%b8%%b9%%b10% *apache-manifoldcf-elasticsearch-plugin-%1-src.tar.gz
>apache-manifoldcf-elasticsearch-plugin-%1-src.tar.gz.sha1
+
+ren apache-manifoldcf-elasticsearch-plugin-%1-bin.zip tiny
+gpg --print-md MD5 tiny >apache-manifoldcf-elasticsearch-plugin-bin.zip.md5temp
+gpg --print-md SHA1 tiny >apache-manifoldcf-elasticsearch-plugin-bin.zip.sha1temp
+ren tiny apache-manifoldcf-elasticsearch-plugin-%1-bin.zip
+ren apache-manifoldcf-elasticsearch-plugin-%1-bin.tar.gz tiny
+gpg --print-md MD5 tiny >apache-manifoldcf-elasticsearch-plugin-bin.tar.gz.md5temp
+gpg --print-md SHA1 tiny >apache-manifoldcf-elasticsearch-plugin-bin.tar.gz.sha1temp
+ren tiny apache-manifoldcf-elasticsearch-plugin-%1-bin.tar.gz
+
+set /p md5= < apache-manifoldcf-elasticsearch-plugin-bin.zip.md5temp
+for /f "tokens=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17 delims=: " %%a in ("%md5%") do set
file=%%a&set b1=%%b&set b2=%%c&set b3=%%d&set b4=%%e&set b5=%%f&set
b6=%%g&set b7=%%h&set b8=%%i&set b9=%%j&set b10=%%k&set b11=%%l&set
b12=%%m&set b13=%%n&set b14=%%o&set b15=%%p&set b16=%%q
+echo %b1%%b2%%b3%%b4%%b5%%b6%%b7%%b8%%b9%%b10%%b11%%b12%%b13%%b14%%b15%%b16% *apache-manifoldcf-elasticsearch-plugin-%1-bin.zip
>apache-manifoldcf-elasticsearch-plugin-%1-bin.zip.md5
+set /p sha1= < apache-manifoldcf-elasticsearch-plugin-bin.zip.sha1temp
+for /f "tokens=1,2,3,4,5,6,7,8,9,10,11 delims=: " %%a in ("%sha1%") do set file=%%a&set
b1=%%b&set b2=%%c&set b3=%%d&set b4=%%e&set b5=%%f&set b6=%%g&set
b7=%%h&set b8=%%i&set b9=%%j&set b10=%%k
+echo %b1%%b2%%b3%%b4%%b5%%b6%%b7%%b8%%b9%%b10% *apache-manifoldcf-elasticsearch-plugin-%1-bin.zip
>apache-manifoldcf-elasticsearch-plugin-%1-bin.zip.sha1
+set /p md5= < apache-manifoldcf-elasticsearch-plugin-bin.tar.gz.md5temp
+for /f "tokens=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17 delims=: " %%a in ("%md5%") do set
file=%%a&set b1=%%b&set b2=%%c&set b3=%%d&set b4=%%e&set b5=%%f&set
b6=%%g&set b7=%%h&set b8=%%i&set b9=%%j&set b10=%%k&set b11=%%l&set
b12=%%m&set b13=%%n&set b14=%%o&set b15=%%p&set b16=%%q
+echo %b1%%b2%%b3%%b4%%b5%%b6%%b7%%b8%%b9%%b10%%b11%%b12%%b13%%b14%%b15%%b16% *apache-manifoldcf-elasticsearch-plugin-%1-bin.tar.gz
>apache-manifoldcf-elasticsearch-plugin-%1-bin.tar.gz.md5
+set /p sha1= < apache-manifoldcf-elasticsearch-plugin-bin.tar.gz.sha1temp
+for /f "tokens=1,2,3,4,5,6,7,8,9,10,11 delims=: " %%a in ("%sha1%") do set file=%%a&set
b1=%%b&set b2=%%c&set b3=%%d&set b4=%%e&set b5=%%f&set b6=%%g&set
b7=%%h&set b8=%%i&set b9=%%j&set b10=%%k
+echo %b1%%b2%%b3%%b4%%b5%%b6%%b7%%b8%%b9%%b10% *apache-manifoldcf-elasticsearch-plugin-%1-bin.tar.gz
>apache-manifoldcf-elasticsearch-plugin-%1-bin.tar.gz.sha1
+
+erase *.md5temp
+copy KEYS apache-manifoldcf-elasticsearch-plugin-%1.KEYS
+copy CHANGES.txt apache-manifoldcf-elasticsearch-plugin-%1.CHANGES.txt
+pscp apache-manifoldcf-elasticsearch-plugin-%1* %2@people.apache.org:public_html/apache-manifoldcf-elasticsearch-plugin-%1
+
+:end
+

Propchange: manifoldcf/release-scripts/release-elasticsearch.bat
------------------------------------------------------------------------------
    svn:eol-style = CRLF



Mime
View raw message