Skip to content

Instantly share code, notes, and snippets.

@tumani1
Forked from svetlyak40wt/build-django.sh
Created February 4, 2014 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tumani1/8808029 to your computer and use it in GitHub Desktop.
Save tumani1/8808029 to your computer and use it in GitHub Desktop.
#!/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