#!/bin/bash # $Id$ # Use this script to create the .orig.tar.gz and .diff.gz in the current # directory set -e if [ -z "$1" ]; then echo -n "Need to specify path to right version, like " echo "tags/releases/phpbb3/3.0.6-1" >&2 echo "or trunk/phpbb3" >&2 exit 1 fi mkdir export-sources.dir cd export-sources.dir echo Exporting... mkdir tmp cd tmp svn export http://svn.wolffelaar.nl/phpbb/$1 debian debian/rules get-orig-source cd .. GZIP=--best tar xzvf phpbb3_*.orig.tar.gz mv tmp/debian phpbb3-* rmdir tmp dpkg-source -b phpbb3-*