Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > 5ab8422a74faa53d6be4c57162f2ef27 > files > 1

jython-2.2.1-18.mga5.src.rpm

#!/bin/sh

# Generate a source drop for jython from SVN

# Usage message
usage="usage: $0 <project_name> <svn_root> <svn_tag>"

project_name=$1
svn_root=$2
svn_tag=$3

# Ensure we got all of the variables
if [ "x$project_name"x = "xx" ]
then
        echo >&2 "$usage"
        exit 1
fi

if [ "x$svn_root"x = "xx" ]
then
        echo >&2 "$usage"
        exit 1
fi

if [ "x$svn_tag"x = "xx" ]
then
        echo >&2 "$usage"
        exit 1
fi

mkdir -p temp && cd temp

svn export --username guest --password "" $svn_root/$project_name/tags/$svn_tag
mv $svn_tag/$project_name $project_name-svn-$svn_tag
tar jcf $project_name-fetched-src-$svn_tag.tar.bz2 $project_name-svn-$svn_tag