Skip to content

Instantly share code, notes, and snippets.

@svetlyak40wt
Created December 4, 2010 17:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save svetlyak40wt/728329 to your computer and use it in GitHub Desktop.
Save svetlyak40wt/728329 to your computer and use it in GitHub Desktop.
A script to build Django from the given SVN revision.
#!/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