Created
December 4, 2010 17:07
-
-
Save svetlyak40wt/728329 to your computer and use it in GitHub Desktop.
A script to build Django from the given SVN revision.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A script to build Django from the given SVN revision | |
REV=$1 | |
UPLOAD_TO=locum:www/pypi | |
pushd . | |
svn co -r $REV http://code.djangoproject.com/svn/django/trunk/ django-$REV | |
cd django-$REV | |
sed -i "s/version = version\.replace.*/version = '$REV-svn',/" setup.py | |
python setup.py sdist | |
cd dist | |
scp Django-$REV-svn.tar.gz $UPLOAD_TO | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment