File: get-svn-source

package info (click to toggle)
libjswingreader-java 0.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 348 kB
  • sloc: java: 3,012; xml: 55; sh: 27; makefile: 6
file content (41 lines) | stat: -rwxr-xr-x 821 bytes parent folder | download | duplicates (4)
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
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh

# Script to export the source code of jsymphonic from its SVN
# repository, and repackage that into a decent .orig tarball...

version="$1"
package="libjswingreader-java"

if [ -z "$version" ]; then
    echo <<EOF
Usage:

  debian/get-svn-source version

  revision can be ommitted.
EOF
    exit 1;
fi

REP="http://jswingreader.svn.sourceforge.net/svnroot/jswingreader/trunk/jswingreader/JSwingReader"

tmpdir=`mktemp -d `
curdir=`pwd`

cd $tmpdir;
echo "Getting $package-$version"

echo "Exporting source"
dir="${package}-${version}"
tarball="${package}_${version}.orig.tar.bz2"
svn export "$REP" "$dir"

echo 
echo '---------------------------------------------------------------'
echo 
echo "Making tarball"
tar cvjf "$curdir/../$tarball" "$dir"

echo "Cleaning up temporary files"
cd $curdir
rm -rf $tmpdir