--------- For nightly ---------
Update the version:

x:
cd x:\pydev
python update_version.py 4.1.0

X:\pydev\builders\org.python.pydev.build\build_cmd.bat
C:\bin\Python27\python.exe X:\release_tools\pydev_uploader.py -s X:\pydev_build\build_dir\pydev\features\org.python.pydev.p2-repo\target\repository -d pydev/nightly


--------- For full build ---------

		Update homepage
			- index.rst
			- history_pydev.rst (move contents from index.rst if needed)

		Update the version of all plugins to the new version.

		Run:
		    - Update version at W:\pydev\plugins\com.python.pydev.docs\build_both.py
		    - W:\pydev\plugins\com.python.pydev.docs\build_both.py

		Commit everything
        Merge with master

		Execute in cmd.exe: X:\pydev\builders\org.python.pydev.build\build_cmd.bat

		Copy features and plugins folders from X:\pydev_build\build_dir\pydev\features\org.python.pydev.p2-repo\target\repository to X:\pydev_build\update_site_dir\updates

copy X:\pydev_build\build_dir\pydev\features\org.python.pydev.p2-repo\target\repository\features\*.jar X:\pydev_build\update_site_dir\updates\features /Y
copy X:\pydev_build\build_dir\pydev\features\org.python.pydev.p2-repo\target\repository\plugins\*.jar X:\pydev_build\update_site_dir\updates\plugins /Y

		Update the site.xml at X:\pydev_build\update_site_dir\updates

		Remove the artifacts.jar and content.jar from X:\pydev_build\update_site_dir\updates

del X:\pydev_build\update_site_dir\updates\artifacts.jar
del X:\pydev_build\update_site_dir\updates\content.jar

		Update artifacts.jar and content.jar


C:\bin\eclipse44_2_final\eclipse.exe -application org.eclipse.equinox.p2.publisher.EclipseGenerator -updateSite X:\pydev_build\update_site_dir\updates\ -site file:X:\pydev_build\update_site_dir\updates\site.xml -metadataRepository file:X:\pydev_build\update_site_dir\updates -metadataRepositoryName "PyDev Update Site" -artifactRepository file:X:\pydev_build\update_site_dir\updates -artifactRepositoryName "PyDev Artifacts" -publishArtifacts -publishArtifactRepository -compress -reusePack200Files -noDefaultIUs -vmargs -Xmx256m


		** Copy site.xml, artifacts.jar and content.jar to X:\pydev_build\build_dir\pydev\features\org.python.pydev.p2-repo\target\repository

copy X:\pydev_build\update_site_dir\updates\site.xml X:\pydev_build\build_dir\pydev\features\org.python.pydev.p2-repo\target\repository\site.xml /Y
copy X:\pydev_build\update_site_dir\updates\artifacts.jar X:\pydev_build\build_dir\pydev\features\org.python.pydev.p2-repo\target\repository\artifacts.jar /Y
copy X:\pydev_build\update_site_dir\updates\content.jar X:\pydev_build\build_dir\pydev\features\org.python.pydev.p2-repo\target\repository\content.jar /Y


		** Create zips to distribute


x:\
cd X:\pydev_build\build_dir\pydev\features\org.python.pydev.p2-repo\target\runnable
"C:\Program Files\7-Zip\7z" a -tzip -r "PyDev 4.0.0.zip" features plugins
cd X:\pydev_build\build_dir\pydev
git archive -o "X:\pydev_build\build_dir\pydev\features\org.python.pydev.p2-repo\target\runnable\PyDev 4.0.0-sources.zip" origin/master

		** Copy zips from X:\pydev_build\build_dir\pydev\features\org.python.pydev.p2-repo\target\runnable to sourceforge:


        ** Submit feature and sources .zip in folder X:\pydev_build\build_dir\pydev\features\org.python.pydev.p2-repo\target\runnable to:

c:\bin\FileZilla\filezilla.exe sftp://fabioz,pydev@frs.sourceforge.net/home/pfs/project/p/py/pydev/pydev/ --local="X:\pydev_build\build_dir\pydev\features\org.python.pydev.p2-repo\target\runnable"

Note: check pageant if it does not connect.

Check if the main download button points to the proper place (not to the sources) --
https://sourceforge.net/projects/pydev/files/pydev/PyDev 4.0.0/ -- choose file > file info > set default and give better name.


		** Add contents to the update site


c:\bin\Python27\python.exe X:\release_tools\pydev_uploader_bintray.py -s X:\pydev_build\build_dir\pydev\features\org.python.pydev.p2-repo\target\repository -d https://api.bintray.com/content/fabioz/pydev/all/

c:\bin\Python27\python.exe X:\release_tools\pydev_uploader_bintray.py -s X:\pydev_build\build_dir\pydev\features\org.python.pydev.p2-repo\target\org.python.pydev.p2-repo-4.0.0-SNAPSHOT -d https://api.bintray.com/content/fabioz/pydev/latest/

c:\bin\Python27\python.exe X:\release_tools\pydev_uploader.py -s X:\pydev_build\build_dir\pydev\features\org.python.pydev.p2-repo\target\repository -d pydev/updates


		** Update homepage:

robocopy X:\pydev\plugins\com.python.pydev.docs\merged_homepage\final X:\openshift\pydev.page2\ /xd .git /xd .openshift  /s
X:\openshift\pydev.page2\
mu st
mu acp "Updated to 4.0.0"

c:\bin\FileZilla\filezilla.exe sftp://fabioz,pydev@frs.sourceforge.net/home/project-web/pydev/htdocs --local="x:\pydev\plugins\com.python.pydev.docs\merged_homepage\final"
c:\bin\FileZilla\filezilla.exe sftp://deploy@173.45.225.54/var/www --local="x:\pydev\plugins\com.python.pydev.docs\merged_homepage\final"


		** Tag repository:
		  git tag pydev_4_0_0 -a -m "PyDev 4.0.0"
		  git push --tags


		** Add news in forum (same as e-mail)

		** update version in eclipse marketplace: http://marketplace.eclipse.org/

		** Add blog post

		** Add to reddit: http://www.reddit.com/r/Python/submit

		** Send e-mail

		** Twitter

        ** Update the versions:
            x:
            cd x:\pydev
            python update_version.py 4.0.0
