~ubuntu-branches/ubuntu/precise/pyzmq/precise

« back to all changes in this revision

Viewing changes to debian/orig-tar.sh

  • Committer: Bazaar Package Importer
  • Author(s): Piotr Ożarowski
  • Date: 2011-02-15 09:08:36 UTC
  • mfrom: (2.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20110215090836-phh4slym1g6muucn
Tags: 2.0.10.1-2
* Team upload.
* Upload to unstable
* Add Breaks: ${python:Breaks}

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh 
2
 
 
3
 
set -e
4
 
 
5
 
package="`dpkg-parsechangelog | sed -n 's/^Source: //p'`"
6
 
version="`dpkg-parsechangelog | sed -n 's/^Version: //p' | sed 's/-.*$//'`"
7
 
REPO="http://github.com/zeromq/pyzmq.git"
8
 
commit="`echo $version | sed 's/^.*+git\(.*\)/\1/'`"
9
 
TAR="${package}_${version}.orig.tar.gz"
10
 
DIR="${package}-${version}.orig"
11
 
 
12
 
git clone ${REPO} ${DIR}
13
 
cd ${DIR} && git checkout $commit && cd ..
14
 
GZIP=--best tar --exclude=.git --numeric --group 0 --owner 0 -cvzf ${TAR} ${DIR}
15
 
rm -rf ${DIR}