File: export-sources

package info (click to toggle)
phpbb2 2.0.21-6
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 4,224 kB
  • ctags: 12
  • sloc: sh: 476; makefile: 108; perl: 29; php: 21
file content (29 lines) | stat: -rw-r--r-- 584 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# $Id: export-sources 78 2004-03-15 19:29:54Z jeroen $

# 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/phpbb2/2.0.6-1" >&2
	echo    "or trunk/phpbb2" >&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 ..
tar xzvf phpbb2_*.orig.tar.gz
mv tmp/debian phpbb2-*
rmdir tmp
dpkg-source -b phpbb2-*