@echo off if "%1" == "" goto error if "%2" == "" goto error del /s %1\trunk\*.pyc svn copy %1\trunk %1\tags\%2 svn commit %1\tags\%2 -m "Tagged %1 for release %2" pushd %1\tags\%2 setup.py sdist setup.py bdist_wininst popd move %1\tags\%2\dist\%1-%2.* downloads svn add downloads\%1-%2.* svn commit downloads\%1-%2.* -m "Release %2 of %1" goto finish :error echo Usage: echo tag project version echo tag active_directory 7.1 :finish